How to convert Binary Data (sent in XML File) to an Image
Login to reply to this topic.
lun, 2005-12-19 15:30
Joined: 2005-04-29
Forum posts: 65
Hiiiii

  I want to know that How to convert the binary Data to an image file .

A. NET server is converting the image file to binary data and sending it through XML file.
I need to receive it thru HTTP Post and convert it to the image file .(Mine one is Symbian app).

Plz help mw eout
I hav ebeen stucked

Thanx

mar, 2005-12-20 12:29
Joined: 2005-07-14
Forum posts: 16
U r downloding image data (binary data) in to a buffer.

Using CMdaImageDescToBitmapUtility & CMdaImageBitmapToFileUtility

you can convert image to a file. Just go through CMdaImage classes.

these classes are deprecated. If u  r targetting above 7.0s Use CImageDecoder  and Encodere classes
mer, 2005-12-21 15:26
Joined: 2005-04-29
Forum posts: 65
Thank you
yes i am downloading the binary data into a buffer

But CImageBufferedDecoder or CImageEncoder/CImageDecoder ,these APIs converts to.from bitmap format.

But I need to convert either from binary data or from base64 encoded dat

I am giving the data(for both binary and base64encoded encoded) of an image

Byte:xFF00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
Base64encoded value:  U3lzdGVtLkJ5dGVbXQ==

Waiting for your help
Thank You

copyright 2003-2009 NewLC SARL