Network File Transfer?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David

    Network File Transfer?

    I've written a pair of client/server programs to do file transfer over
    a network. Pretty simple, really: server grabs the file up into an
    array of bytes, then waits for the client to contact it. When client
    initiates contact, the server sends the data in a packet. This works
    great for all kinds of files EXCEPT jar's!!! The file transfer works,
    but jars won't execust if sent this way. I get an error message
    saying fatal exception or something. Why can i transfer all other
    files like this, but jar's won't work?!
  • Knute Johnson

    #2
    Re: Network File Transfer?

    David wrote:
    [color=blue]
    > I've written a pair of client/server programs to do file transfer over
    > a network. Pretty simple, really: server grabs the file up into an
    > array of bytes, then waits for the client to contact it. When client
    > initiates contact, the server sends the data in a packet. This works
    > great for all kinds of files EXCEPT jar's!!! The file transfer works,
    > but jars won't execust if sent this way. I get an error message
    > saying fatal exception or something. Why can i transfer all other
    > files like this, but jar's won't work?![/color]

    Without seeing your code I can't tell you for sure but to make a guess I
    would say that you've been using Readers when you should have been using
    Streams.

    --

    Knute Johnson
    email s/nospam/knute/
    Molon labe...

    Comment

    Working...