Mathew Fulton

Greenhorn
+ Follow
since Sep 10, 2011
Mathew likes ...
Eclipse IDE Java Windows
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Mathew Fulton

Hi

Sorry if this is in the wrong section.

I have a IM program that my friends at school want me to host. Its a standalone jar app. I've looked at hosting options and it seems as though I'll have to use a JSP. Is this neccessary and if so can anyone point me to a good tutorial or something to get me started? Else, does can anyone tell me where I can get a host that'll host the program for me?

Thanks
Mathew
Hey guys!

I'm busy developing a chat program and want to add a file sending capability.
I managed to write a standalone server and client to JUST send a file and it worked.

However, when I incorporated it into my chat program it does not work properly. The file is copied but it doesn't break out of the while loop.
I'm doing it using a byte[] array and a DataInputStream.

Here is the basics of what it looks like (and it works in the standalones)



Now the client works perfect, sending everything and printing the last number of bytes. But the server does not pick up the last lot and so doesn't break out of the loop.

Thanks
12 years ago