Re: [twsocket] sending jpg through httpserver

2011-01-27 Thread Francois PIETTE
I am trying to send a jpg from delphi's tjpgImage to a client with the tHTTPServer component. Would like to keep it in a memory stream and not save to disk, but AnswerStream is not what it sounds like. Searched the archives but found little that was close to what I wanted. Still using ICS 5. An

Re: [twsocket] sending jpg through httpserver

2011-01-27 Thread Edwin @ Clanhay
That did the trick. Thanks Peter for the quick response. Ed - Original Message - From: "Busai Péter" To: "ICS support mailing" Sent: Wednesday, January 26, 2011 5:25 PM Subject: Re: [twsocket] sending jpg through httpserver Hi Edwin, AnswerStream is just perfe

Re: [twsocket] sending jpg through httpserver

2011-01-26 Thread Busai Péter
Hi Edwin, AnswerStream is just perfect for that. Here is how I send png. It is stored in FpngStream, which is also a TMemoryStream. I dont want it to be destroyed after sent. That is why I create an other memory stream and copy then content. ClientCnx.DocStream := TMemoryStream.Create; ClientCnx.