Assign a Synapse Document to TMemoryStream lazarus / 38-Networking and Web Programming ---------------------------------------------------------------------- fpcoder ยท 2015-01-19 03:50 An app makes a request for a HTML page using THTTPSend. The result ends up in HTTPSend.Document. Code: [Select]if SynaHttp.HTTPMethod('GET',Target) then SynaHttp.Document.SaveToStream(AMemoryStream); Instead of SaveToStream, is possible to just assign the memory address of HttpSend.Document to AMemoryStream? And stop HttpSend from clearing the content of Document? Because otherwise I suppose that when HTTPSend is destroyed, it will free the content of its Document and there goes the data that AMemoryStream points to..