Results 1 to 4 of 4
  1. #1
    Join Date
    Dec 2009
    Posts
    16
    Rep Power
    0

    Default Byte Array sending and receiving using Socket

    Hi,
    i am trying to semd and receive byte array using OutputStream and InputStream .. but i was getting null pointer exception..dono y it had happened..can anyone plz give me a sample code of how it works. . . .

    thank u....

  2. #2
    travishein's Avatar
    travishein is offline Senior Member
    Join Date
    Sep 2009
    Location
    Canada
    Posts
    684
    Rep Power
    6

    Default

    was the exception on the client side or the server side.
    was u connecting a client socket to a server socket and reading from the server, or writing to the server.
    plz help provide more details

  3. #3
    Join Date
    Dec 2009
    Posts
    16
    Rep Power
    0

    Default Mes

    ya...i am using client and server socket and sending using println and reading using readLine method...

  4. #4
    markito300 is offline Member
    Join Date
    Jan 2010
    Posts
    1
    Rep Power
    0

Similar Threads

  1. Sending an ArrayList over UDP, as a byte array.
    By eggmanpete in forum Advanced Java
    Replies: 9
    Last Post: 11-12-2010, 12:37 PM
  2. sending object through network/socket
    By skandalouz in forum Networking
    Replies: 1
    Last Post: 12-24-2009, 07:34 AM
  3. Receiving Text over a Socket (ReadLine() problem)
    By HermanHope in forum New To Java
    Replies: 1
    Last Post: 04-09-2009, 10:35 PM
  4. Sending a file through socket
    By sureshkumarcs88 in forum Networking
    Replies: 2
    Last Post: 03-14-2009, 07:32 AM
  5. problem in socket connection in sending images
    By vibhor in forum Networking
    Replies: 2
    Last Post: 02-20-2009, 05:39 AM

Posting Permissions

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