• Post Reply Bookmark Topic Watch Topic
  • New Topic

Send universal File over Socket (pdf,txt,doc,jpeg, png etc.) between Client And Server  RSS feed

 
travis Haycock
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hello I am having difficulties sending files to my server I have successfully designed a few voice messaging methods which send a wav file over the network which work great but I am unable to send a file... I see lots of examples and try to make my own but it either stalls or throws exceptions I have been reading and can't find a real credible source that neither functional or provides theory can someone please help me out? my Server is receiving and my client is sending

CLIENT





SERVER


 
Paul Clapham
Sheriff
Posts: 22817
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at lines 30 and 33 in your sendFile method. Also 41 and 45.

You don't have a good handle on the problems, I think, but I suggest doing more logging in the server.
 
travis Haycock
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply, why would this code be allowing only ZIP files to go through? it seems I can send those files without any modification of the code
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!