Search:

Type: Posts; User: vortexnl

Search: Search took 0.10 seconds.

  1. Re: Sending image through socket server causes image on the other end to be corrupt

    Never mind, I fixed it by using DataInputStream and DataOutputStream
  2. Sending anything other than a .txt file through socket causes the file to be corrupt

    I'm sending an image of about 800 kB through a socket server to a client,

    This is the server code I'm using:



    try
    {
    File myfile = new File("oeh.jpg");
Results 1 to 2 of 2