G
Guest
Hi,
I am trying to transfer data from a Unix machine to Windows machine
using C Network functions.
In unix i send image data to windows using send() function in a loop
running till the end of image data (length is known beforehand). sending 1022
bytes at a time
when i send binary image data, i use recv command in windows to get data
1022 bytes at a time.it works fine.
But when i try to send JPEG image data. Only the first 4 bytes of JPEG
header (FF D8 FF E0) are received. the rest of the 1018 bytes are not
received, in the next send(), transmission starts from 1023 bytes after the
start of image data, from this point on data is transmitted and received
correctly.
I have observed that if Image data has consecutive zeros - 00 i.e 0x30
0x30. Data is either not read by recv() or transmitted by send() [i actually
dont know which command is at fault since both return 1022 bytes data
read/written].
Any help will be greatly appreciated.
thanks and regards
I am trying to transfer data from a Unix machine to Windows machine
using C Network functions.
In unix i send image data to windows using send() function in a loop
running till the end of image data (length is known beforehand). sending 1022
bytes at a time
when i send binary image data, i use recv command in windows to get data
1022 bytes at a time.it works fine.
But when i try to send JPEG image data. Only the first 4 bytes of JPEG
header (FF D8 FF E0) are received. the rest of the 1018 bytes are not
received, in the next send(), transmission starts from 1023 bytes after the
start of image data, from this point on data is transmitted and received
correctly.
I have observed that if Image data has consecutive zeros - 00 i.e 0x30
0x30. Data is either not read by recv() or transmitted by send() [i actually
dont know which command is at fault since both return 1022 bytes data
read/written].
Any help will be greatly appreciated.
thanks and regards