01-25-2016 09:46 AM
Dear all,
Iam getting a image as shown below
actual image is clear ..
im having a txt data as attached below.
and please suggest me is there any code to get clear image if it s there please attach here.
thank you,
Muniraju M
01-25-2016 09:49 AM - edited 01-25-2016 09:53 AM
Why are you storing an image as a txt file..? That's likely your issue.
The picture you attached is exactly the picture you included in the body of your post. Do you have the original image to share?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
01-25-2016 09:50 AM - edited 01-25-2016 09:51 AM
The convert EOL on the write is probably one issue, it converts all /r/n to something native, which could be some of the bytes in the file. Right click the write function and turn this off. You may also want to try to use the Write Binary file instead, but if you do this, make sure the prepend array or string size to a false constant.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-25-2016 09:55 AM
actually can you tell how to save in binary format..????
01-25-2016 10:05 AM
There's a VI called Write to Binary File next to the Write to Text File VI that you're already using.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
01-25-2016 10:10 AM
There is 'write to binary file' in the File I/O palette, right next to the 'write to text file'.
01-25-2016 10:12 AM
01-25-2016 10:12 AM
actually i am getting a fragment string data for every 1 second or something after that i want to reconstruct it as a image file.
can any one suggest me.
01-25-2016 10:39 AM
Yes I'd suggest posting more details, more code, more data, more information.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
01-25-2016 11:02 AM
@muniraj wrote:
actually i am getting a fragment string data for every 1 second or something after that i want to reconstruct it as a image file.
can any one suggest me.
How are you getting it? Where does it come from? What does the string represent? How do you know when you have all data for the image?
If the fragment is just a part of an image file, you could just blindly stream the data to disk in binary format, then read it as an image once all data is present.