472,096 Members | 1,393 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

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 5316
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 leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.