Image Save as String

Discussions about image processing and document imaging.
Post Reply
senthilR
Posts: 17
Joined: Thu Nov 20, 2008 4:27 pm

Image Save as String

Post by senthilR » Thu Apr 02, 2009 7:17 am

Hi Loic,

I can able to successfully convert a image as string and assigned to the string variable.Using the string variable I can able to view the image by gdviewer1.displayfromstring .
But after I saved the image string in to a Textfile(.txt),I am not able to view the image from the image string which is saved in the text file.

Is there anyway to convert the image (string,binary) and save it in .txt or .XML file and retrive the image (string,binary) from the file to view?

If possible,please reply my previous post.

Thanks and regards
M.senthil

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Image Save as String

Post by Loïc » Thu Apr 02, 2009 11:59 am

Hi Senthil,

As always, please report us a code snippet to see what you are doing wrong.

I'll get a look on your previous post.

Kind regards,

Loïc

guruross
Posts: 47
Joined: Tue Jul 22, 2008 11:14 pm
Location: Redding, CA, USA
Contact:

Re: Image Save as String

Post by guruross » Mon Apr 13, 2009 8:03 pm

I haven't tested this, but as I understand it, are you using Encode64String after you have the string representation of the image?

Code: Select all

tstOutput.WriteLine gdiPhoto.Encode64String(gdiPhoto.SaveAsString("jpg"))

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests