How to pass the value of a MemoryStream to a Memo? lazarus / 21-General ---------------------------------------------------------------------- ReinaldoDuvida · 2024-04-15 14:30 I'm saving an image in a MemoryStream variable, now I need to pass the value of this variable to a Memo. How do I do this? ---------------------------------------------------------------------- cdbc · 2024-04-15 14:45 Hi Memo1.LoadFromStream(SomeMemoryStream); ...BUT why would you want to do that?!? TMemo can't handle images... Regards Benny ---------------------------------------------------------------------- paule32 · 2024-04-15 15:31 you could sub class the TMemo, and write the Timage as background for the TMemo with override the protected Paint method. ---------------------------------------------------------------------- Remy Lebeau · 2024-04-15 15:46 Quote from: ReinaldoDuvida on April 15, 2024, 04:30:41 pmI'm saving an image in a MemoryStream variable, now I need to pass the value of this variable to a Memo. How do I do this? A Memo can display only text.  What is your goal exactly? Do you want to display the actual image?  Use TImage instead. Do you want to see a textual representation of the raw bytes of the image?  Then hex-encode the bytes and display that instead. Please clarify.