Drear friends
I develop an application "client and server" that receive image. And the problem is that I don't know what the size of image is! Am using socket rev(), and to use it u must to paste an know Des size before call the function . If any one knows how to solve this problem and I will be thank full to hem?
Set up your client/server protocol so that when a client app requests the image from the server, the server first replies with a message with the image size (which the server reads from the image file info).
Only after the client has acknowledged the size message, the server sends the image file contents.