I`m trying to send a binary file (png image) in http response.
FILE *file; char *buffer; int fileLen; //Open file file = fopen(\"1.png\", \"rb\"); if (!file
strcat(reply, buffer); // this is incorrect, because png(buffer) may contain zero byte send(client, reply, strlen(reply), 0); strlen(reply) // this is incorrect, because png may contain zero byte