You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by dinesh707 <di...@gmail.com> on 2012/10/30 10:06:53 UTC

how to make a File upload server code for a Android Client

Hi,

My android client program wants to upload a file though server code. Can i
write this through tapestry? I found a way to do it through a tapestry form.
But if im sending it by another java app (android) how to do it?



--
View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-a-File-upload-server-code-for-a-Android-Client-tp5717405.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: how to make a File upload server code for a Android Client

Posted by Lance Java <la...@googlemail.com>.
Since you will be constructing a HTTP post programatically (instead of
posting a form generated by a tapestry page) you might want to consider
reading the File via MultipartDecoder.getFileUpload(String parameterName) on
the server side.

http://tapestry.apache.org/5.3/apidocs/org/apache/tapestry5/upload/services/MultipartDecoder.html





--
View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-a-File-upload-server-code-for-a-Android-Client-tp5717405p5717413.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: how to make a File upload server code for a Android Client

Posted by dinesh707 <di...@gmail.com>.
Thankx



--
View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-a-File-upload-server-code-for-a-Android-Client-tp5717405p5717411.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: how to make a File upload server code for a Android Client

Posted by Lance Java <la...@googlemail.com>.
FYI, (android != java). It's dalvik!

This question is not really tapestry related and would be better asked on
android forums. The fact that you're posting the file to a tapestry server
is irrelevant at this point. If there's not a core android API to upload a
file via HTTP you should consider using something like HttpClient[1] (if it
works on dalvik) or similar. 

[1] http://hc.apache.org/httpcomponents-client-ga/index.html



--
View this message in context: http://tapestry.1045711.n5.nabble.com/how-to-make-a-File-upload-server-code-for-a-Android-Client-tp5717405p5717409.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org