• Post Reply Bookmark Topic Watch Topic
  • New Topic

File outputted has size zero  RSS feed

 
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

 
author & internet detective
Marshal
Posts: 38265
625
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.
 
Run away! Run away! Here, take this tiny ad with you:
Rocket Oven Kickstarter - from the trailboss
https://coderanch.com/t/695773/Rocket-Oven-Kickstarter-trailboss
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!