Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload file

 
Liang Anmian
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to upload a file from a mobile device to a J2EE server? I can't seem to find any tutorial covering this aspect.

Thanks in advance for any help.
 
necati sekkeli
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not know if it is possible with an easier way but logically you can use streamConnection to transfer a file to server.

Am i true?
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by necati sekkeli:
I do not know if it is possible with an easier way but logically you can use streamConnection to transfer a file to server.

The more common way is to send the file as the body of an HTTP POST request and have a servlet on the server-side save the contents into a file.

Originally posted by necati sekkeli:
Am i true?

That's a question only you can answer
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic