Results 1 to 3 of 3
Thread: tcp file transfer
- 03-16-2009, 06:55 PM #1
Member
- Join Date
- Mar 2009
- Posts
- 2
- Rep Power
- 0
tcp file transfer
hey al...wrote a tcp java pgm to send files in net beans(JFrame)...
the problem is only a part of the file is getting sent...
i.e. if the original file size is 1kb the sent file is only 0.5kb...
am not able to open the file also...
can any1 plz help???
very urgent!!Last edited by ddj; 03-16-2009 at 07:02 PM.
- 03-16-2009, 11:33 PM #2
Member
- Join Date
- Mar 2009
- Posts
- 6
- Rep Power
- 0
What sought of reader are you using? Is it buffered? Please show your code for more help.
- 03-20-2009, 02:10 PM #3
Transmission Control Protocol... Netbeans IDE... JFrame GUI component... File...
None of these really go together. If you are using some form of output stream, make sure you close it properly. This will also flush it. If you are using a socket, make sure you read the entire message on the receiving end. It may require multiple reads before all the bytes are transferred.
Similar Threads
-
To transfer a file from client to server
By phani in forum NetworkingReplies: 4Last Post: 10-12-2010, 06:15 PM -
file transfer
By prashant in forum NetworkingReplies: 3Last Post: 12-10-2009, 06:46 AM -
Applet > servlet file transfer
By milkman128 in forum Java AppletsReplies: 1Last Post: 11-15-2008, 03:21 PM -
Java File Transfer
By lks0912 in forum Advanced JavaReplies: 0Last Post: 10-23-2008, 12:53 PM -
File and Message transfer over sockets!
By rameshraj in forum NetworkingReplies: 3Last Post: 05-14-2008, 08:13 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks