×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Mar 2005
    Posts
    51

    Question How can I know the size of what I will receive before I receive it ?????

    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?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Finland
    Posts
    9,563
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×