I am using TMemoryStream to send dynamic records using indy TCPServer.
The structure of my record is as follows:
TMyRecord = record
name : string ; // unassigned size
ID : integer ;
Picture : TJPEGImage ;
end;
How can I assign the variable of this record type into a TMemoryStream?
Also please explain me how to extract this TMemoryStream into record type.
The basic idea is