G
Georgios Sakalis
I need some help for proect of mine
I am bulding a web server in c
To parse the request I am using a char *buffer, with a default size at te
begining, If the bytes that been read are equal to that size I realloc the
buffer and so on.
The problem is when I am trying to implement file uploading. I read also the
file in the buffer, but the problem is that i cannot find the size of the
binary file in order to say how many bytes should write to the file.
Any ideas or code??
I am bulding a web server in c
To parse the request I am using a char *buffer, with a default size at te
begining, If the bytes that been read are equal to that size I realloc the
buffer and so on.
The problem is when I am trying to implement file uploading. I read also the
file in the buffer, but the problem is that i cannot find the size of the
binary file in order to say how many bytes should write to the file.
Any ideas or code??