EldoS | Feel safer!

Software components for data protection, secure storage and transfer

outputstream from HTTPClient

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#30524
Posted: 08/28/2014 15:13:44
by Walter Schrabmair (Priority Standard support level)
Joined: 05/03/2013
Posts: 150

Hi,
I try to port Delphi 7 code to XE6. Most of the Unicode Problems I could solve.
One Question.

is the outputstream of a httpsclient a UNICODE or ANSI Characterstream?
HOw can I search the outputstream for a substring like '%PDF' ?
if the stream begins with %PDF then this a PDF FIle, which is stored in the BLOB DB Field.
Thanks
#30525
Posted: 08/28/2014 15:21:44
by Eugene Mayevski (EldoS Corp.)

OutputStream contains exactly what was obtained without any conversion. You can treat the contents as a blob and convert it to anything you need depending on the content type of the received data.

In case of PDF the header marker is 4 bytes.


Sincerely yours
Eugene Mayevski

Reply

Statistics

Topic viewed 272 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!