Tag: Tmemorystream

  • How can I make partial download in Delphi

    To make a partial download in Delphi, you can use the TIdHTTP component from the Indy library. Here is an example of how to use it: uses IdHTTP; var HTTP: TIdHTTP; Stream: TMemoryStream; URL: string; StartPos, EndPos: Int64; begin HTTP := TIdHTTP.Create(nil); try Stream := TMemoryStream.Create; try URL := ‘http://www.example.com/file.zip’; StartPos := 0; EndPos :=…

  • How do I use TStream, Tmemorystream, Tstringstream in Delphi

    In Delphi, TStream is the base class for a set of classes that represent streams of data. A stream is a sequence of bytes that can be read from or written to. TStream provides a set of methods and properties that allow you to read and write data to a stream, as well as seek…