04-13-2010 02:20 AM
Hi Hasan,
is the data from your post before the entire image? Is it all you have? Can you upload a vi with your data in a string constant? What is the expected image format? Looks like jpg for me.
Mike
04-13-2010 02:24 AM
04-13-2010 02:38 AM
04-13-2010 02:40 AM
Hi Hasan,
as already mentioned, write your file as binary file.
Can you upload such an example?
Mike
04-13-2010 02:42 AM
04-13-2010 02:48 AM
hi mike... this is not the whole data, its only the frst package. I have 12 packets similar like this.
am attaching the file that i need to write them in text file as characters and then convert the extension of that txt file into jpg. so that i can read the image.
i have attached the whole file. I need to display this file as jpeg image. the image should look like the attached image (image.jpg)
04-13-2010 02:50 AM
Mike
the source code is very cumbersome to obtain all the data one by one following the protocols.
can you please tell me how to convert the file (example values.txt) into jpeg image using labview?... the image should look like the second attachment (image.jpg) in the previous post
04-13-2010 02:52 AM - edited 04-13-2010 02:52 AM
Hi Hasan,
if i write it like this, then i get the result you show in your post.
Mike
04-13-2010 02:56 AM
Mike
How are you converting/writing this hex file into jpeg image? can you please post your code?
what i am getting the image is attached here (Distorted image.jpg)
only first row is visible but the rest of the image is distorted. Please tell me how can I obtain the actual image?
04-13-2010 03:04 AM - edited 04-13-2010 03:08 AM
Hi Hasan,
if you have the image data as text, as you have posted before, then the attached code works to generate the jpg file.
Mike