Results 1 to 3 of 3
  1. #1
    vibhor is offline Member
    Join Date
    Feb 2009
    Rep Power

    Default problem in socket connection in sending images

    hi all,

    i am tying to capturing images and sending it to the server from client program , first i converted a captured image into byte array and then sending it throw outputstream of socket but after sending one image a error encontered that is - connection reset by peer: socket Write error

    plz tellme how to transmit images one by one ..

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Rep Power


    I doubt your problem has to do with the data itself. You say that one image gets through, then the client socket get a closed error. Most likely, the server closed the connection after receiving the image.

    Either start a new connection for each image at the client, or modify the server and the client to allow additional communication indicating that another image will be sent, or that the client is done sending images.

    I would think that the server would allow the client to close the connection as well, although that is not a rule.

  3. #3
    vibhor is offline Member
    Join Date
    Feb 2009
    Rep Power

    Default thanks

    thanks a lot, i am trying to creating each time new connection and sendind image

Similar Threads

  1. Replies: 3
    Last Post: 04-13-2010, 03:43 PM
  2. Replies: 1
    Last Post: 02-10-2009, 09:16 AM
  3. Replies: 3
    Last Post: 01-26-2009, 05:30 PM
  4. SWT Images via socket
    By KKDoWniNg84 in forum SWT / JFace
    Replies: 2
    Last Post: 07-26-2008, 04:39 PM
  5. How To Make Socket Connection
    By madhumurundi in forum Networking
    Replies: 5
    Last Post: 04-21-2008, 06:05 PM

Posting Permissions

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