01-25-2016 12:44 PM
could you attach you txt file here is the digits that you save between 0 to 255 or not ?
01-25-2016 09:46 PM
01-25-2016 10:07 PM - edited 01-25-2016 10:09 PM
Have you tried the binary format yet????? Why can't you just save the image in jpeg, png, or bmp format?
And to repeat what Altenbach asked, how are you getting it? Where does it come from?
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
01-25-2016 10:20 PM
01-25-2016 10:48 PM - edited 01-25-2016 10:55 PM
This is the first you've mentioned UDP. I think Altenbach has a much better understanding of this than I do, but basically UDP doesn't have any handshaking so if you lose any packets during your image transfer, you will end up with a messed up image. That may be your problem here or it may be the conversion to a txt file.
You won't know what's going to work until you try it. If there is any more information you have for us (like maybe the code from the external system) please include that. You can simulate the external system communicating with your local system by doing the conversion and back-conversion within the same VI. You should be able to go from JPEG to binary to file then back to binary to JPEG without any issues.
P.S. This whole time I never noticed you could change the title of a reply until I got a notification about your response and it didn't have "Re:" at the beginning.
Cheers
--------, Unofficial Forum Rules and Guidelines ,--------
'--- >The shortest distance between two nodes is a straight wire> ---'
01-25-2016 11:59 PM
sir,
in external system image data deviding into fragments and each fragments sending in different time intervals through udp protocol, iam able to recieve the data in different time interval and i used write to binary file (here whatever data saved previously going to be deleted ) and iam unable to reconstruct the image (if i use write to file with EOL i can get image data with distortion).
presently my problem is iam unable to save complete image data wich is coming in fragments with different time interval.
please suggest me that how can read data using binary file or write to text file (without usng EOL).
01-26-2016 01:31 AM
Why don't you show is your code that receives and saves the data?
What is the device on the other side that is sending the data?
Does the communication include specail haders such as sequence numbers of file offsets, etc?
01-26-2016 11:51 AM
@muniraj wrote:
sir,
in external system image data deviding into fragments and each fragments sending in different time intervals through udp protocol, iam able to recieve the data in different time interval and i used write to binary file (here whatever data saved previously going to be deleted ) and iam unable to reconstruct the image (if i use write to file with EOL i can get image data with distortion).
presently my problem is iam unable to save complete image data wich is coming in fragments with different time interval.
please suggest me that how can read data using binary file or write to text file (without usng EOL).
It is also very possible that this is a color space issue. From what we can read from the text file this is a Photoshop 3.0 image using the JPEG File Interchange Format (JFIF).
From Wikipedia:
---------------------------------------------------------
JPEG does not define which color encoding is to be used for images. JFIF defines the color model to be used: either Y for greyscale, or YCbCr as defined by CCIR 601. Since this is not an absolute color space — unless an ICC profile, colorspace metadata, or an sRGB tag is provided and interpreted – a decoded JFIF image will be in a device-dependent RGB colorspace. Hence, JFIF does not by itself provide a mechanism for accurately transporting color-managed images across the Internet.
----------------------------------------------------------
I don't know what color space was used for the original file but it should probably be set tbasic RGB.
Ben64
01-27-2016 05:38 AM
in external system(windows xp) image data deviding into fragments and each fragments sending in different time intervals through udp protocol, iam able to recieve the data in different time interval and i used write to binary file (here whatever data saved previously going to be deleted ) and iam unable to reconstruct the image (if i use write to file with EOL i can get image data with distortion).
presently my problem is iam unable to save complete image data wich is coming in fragments with different time interval.
please suggest me that how can read data using binary file or write to text file (without usng EOL).
01-27-2016 07:47 AM
@Hooovahh wrote:
Yes I'd suggest posting more details, more code, more data, more information.
Same comment, post the code that breaks it up into chunks, and post the code that reads the chunks and saves it.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord