How can i convert Tbytes
type to a Binary file
using MemoryStream
?
相关问题
- Is there a Delphi 5 component that can handle .png
- What is the best way to do a search in a large fil
- Is there a way to install Delphi 2010 on Windows 2
- Is TWebBrowser dependant on IE version?
- Spring Integration - Inbound file endpoint. How to
相关文章
- What is the correct way to declare and use a FILE
- Making new files automatically executable?
- Best way to implement MVVM bindings (View <-> V
- MemoryStream disables reading when returned
- Convert HttpContent into byte[]
- Windows EventLog: How fast are operations with it?
- How to serialize data into indented json [duplicat
- How to force Delphi compiler to display all hints
F.I. in Delphi XE:
Or directly with a
TFileStream
to cut down on the number of intermediate objects created:I don't believe using
TMemoryStream
is helpful here since it just involves an extra unnecessary heap allocation/deallocation.Uwe's answer will work if you have TBytesStream available. If not:
Well, if answers mention Delphi XE and other streams than
TMemoryStream
, then i suggest one more method.