Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File outputted has size zero

 
Alan Brooks
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello what i am doing is sending a file from and android phone to a java server. The fact that there is an android phone is irrelevant. The problem is when the file is sent over sockets and is outputted the file is of size zero so i can not get the information out of it. The code is below any help would be much appreciated.

Client:



Server on pc

 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34095
337
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Alan,
Can you reproduce the problem without the sockets? That will help narrow down the causes. It will also allow someone to run the example to see what is going on.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic