Yes, the server side also reading it in binary format. Actually I am doing a Class for LPR printing, the client will send PCL formated binary file to a Network printer. So the client cannot read chunk by chunk, it have to read the file whole in one shot and send it chunk by chunk.
Ganesh...
User Profile
Collapse
-
Hi,
Try this way
#DEFINE C_DELIMETER_COM MA ","
char *p_szToken = '\0';
p_szToken = strtok ( m_szSource, C_DELIMETER_COM MA );
while( p_szToken != NULL )
{
// read the values from p_szToken
p_szToken = strtok( NULL, C_DELIMETER_COM MA );
}
I think this might help you
GaneshLeave a comment:
-
Read a Huge file and send via SOCKET
Hi All,
I have a fn prototype as follows
void print ( char *Buffer, usigned long bufferSize, int chunkSize );
This fn will accept binary file buffer and the buffer size and the chunk
size, implementation must be open socket and send the buffer in chunks which
is provided by the parameter.
My probelm is if I send a txt file the server receives it correctly, but
when...
No activity results to display
Show More
Leave a comment: