Send more than 1 files


It possible to send a list of file with TroMemoryStream? How? about (10)

Br,Alessandro La Ragione


can you rephrase your question, pls?
you can put some strings to TStringList and write this TStringList to stream.
on other size, you can read back it from stream to TStringList

if you want to send N files in one stream, you can write them consistently to stream, saving their size or offset in stream like

  • file1
  • file N
  • offset of 1st file or it’s size, int64
  • offset of N file or it’s size, int64
  • N (count of files), integer

reading will be as

  • reading N (count of files)
  • reading offsets or file size
  • reading files