Zombie_Colonel
Zombie_Colonel

Reputation: 227

How to upload a file from an android application into the tomcat 6 server

Help me please I have searched and searched but I have not found an operational code, a code that allows to upload a file from my android application to my Tomcat server 6,

I need the code on the client side and server side. thank you very much

Upvotes: 0

Views: 2154

Answers (2)

John N
John N

Reputation: 51

For the Server check out:

file upload "multipart/form" Exception org.apache.commons.fileupload.FileUploadBase$InvalidContentTypeException

And the client:

Android file uploader with server-side php

You should be able to adapt the code from these posts.

Good luck.

Upvotes: 2

You need to create a web service on your Tomcat server. You can do this using java servlets, php, or a WCF service in. NET. Then access your web service using a RESTful client

Upvotes: 0

Related Questions