SaveToFile (and LoadfromFile) do not work in Indie9/D5 environment. Why?
Posted on 2006-11-14
I have been creating a custom email client for a customer using Indy9 and D5. All is well except that I need to be able to save Msg objects locally for review after deleting them from the server. Using the TidMessage SaveToFile and LoadFromFile methods almost works - except if the message has an attachment. If that is the case, the body of the message is not available after retrieving the msg from a file.
I also tried simply saving to a stream - clearing the msg then immediately rereading the stream - I get the same results.
Is this a known problem with Indy9? If so does Indy10 have it fixed? Or is there something special that needs to be done with a msg read from a file or stream?
Thanks in advance - (example code would be a help)