Board index » delphi » Error loading from stream
|
Uli Becker
Delphi Developer |
Error loading from stream2008-07-09 03:38:00 PM delphi256 Hi, I am using this code to load a message (formerly saved by using Indy9 btw) into an idMessage component: idMessage.clear; ms := TEDBBlobStream.Create(dm.MessagesTableMessage, bmread); try ms.position := 0; idMessage.LoadFromStream(ms,false); ShowMessage(idMessage.Body.Text); <---------------- Error or empty finally ms.Free; end; When executing the code I get an empty result in most cases, in some cases this error is raised: "Max line length exceeded." Saving the same message to file as .eml from the database and loading it into idMessage always works fine. What could be wrong here? (Delphi2007 last Indy snapshot) Here you find an eml-file that produces the error when loaded from stream: www.beckersoft.de/temp/sample.eml Thanks. Uli |
