I need to convert string to an image in vb.net.
In my project, i need to capture the signature and show it as image.
Capturing signature is done and it returns the data as string.
I need to take this string and show it as image.
I am doing in the following way
Dim Wfile As New StreamWriter("C:\Signature.tiff") WFile.WriteLine(ControlData) 'ControlData is the captured data in string format. WFile.Close()
The tiff file is being created... but when i clicked on that to view the image.. it is showing nothing and it says preview not available. But the size of the image is not 0. so the image has some data.
In the same way i have done in Html and VB and it worked perfectly fine. I am not able to understand why in vb.net it is giving problem.
Can anyone tell me whats wrong with this code? or Can you tell me correct way of doing it?
Please help me.
Thanks a lot.
With love and regards