Results 1 to 10 of 10
  1. #1
    rav
    rav is offline Member
    Join Date
    Jul 2010
    Posts
    16
    Rep Power
    0

    Default sending and recieving files

    Hello just wanted to ask if anyone knows how to send and recieve files to a server from client.

    any help will be much appreciated.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,395
    Rep Power
    25

    Default

    There are many posts on that topic on this forum. Use Search to find them.
    Some search args could be Socket, getInputStream(

  3. #3
    rav
    rav is offline Member
    Join Date
    Jul 2010
    Posts
    16
    Rep Power
    0

    Default

    Thanks Norm as always :)

  4. #4
    rav
    rav is offline Member
    Join Date
    Jul 2010
    Posts
    16
    Rep Power
    0

    Default

    Just a question, now that I have a connection, how can I send data from the client to the server. is there any useful posts I could look at

    Thanks

  5. #5
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,395
    Rep Power
    25

    Default

    There probably are posts. Use Search to find them.

  6. #6
    rav
    rav is offline Member
    Join Date
    Jul 2010
    Posts
    16
    Rep Power
    0

    Default

    Thanks Norm, I have been looking for the posts but to no avail, what I am trying to do is receive and send files from the server, and I have been trying to learnt about multipleserver threads but nothing so far.....

  7. #7
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,395
    Rep Power
    25

    Default

    DId you try searching this forum for Socket or getInputStream ?

  8. #8
    rav
    rav is offline Member
    Join Date
    Jul 2010
    Posts
    16
    Rep Power
    0

    Default

    yup, but found nothing relevant although I did get an idea of how it works.

    Basically if I want to implement my server to become a multilserver, I just need to create a loop where the server sends the file and also define "abcd" in abcd.length, in the loop created

  9. #9
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,395
    Rep Power
    25

    Default

    and also define "abcd" in abcd.length, in the loop created
    Not sure what that means?

    There might not be code you can copy and paste. But I'm sure there are lots of examples of servers and clients code.

  10. #10
    rav
    rav is offline Member
    Join Date
    Jul 2010
    Posts
    16
    Rep Power
    0

Similar Threads

  1. Sending .GIF files over the network
    By nadia in forum Networking
    Replies: 8
    Last Post: 12-30-2008, 11:57 AM
  2. Replies: 15
    Last Post: 10-15-2008, 11:19 PM
  3. Sending files over sockets!
    By rameshraj in forum Networking
    Replies: 2
    Last Post: 05-30-2008, 10:18 PM
  4. sending jar files from client to server?
    By gobinathm in forum New To Java
    Replies: 2
    Last Post: 11-13-2007, 05:12 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
  •