469,275 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,275 developers. It's quick & easy.

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?!
Jul 17 '05 #1
1 5200
David wrote:
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?!


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...
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Robert Tarantino | last post: by
1 post views Thread by Neel Word | last post: by
4 posts views Thread by Robert Tarantino | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.