Andy
Andy

Reputation: 5379

Upload file on apache server

is possible to upload a file on apache server using commons-fileuploader jar file in android .. if yes then please give any reference site if no then please guide me.

Upvotes: 1

Views: 2218

Answers (1)

SirDarius
SirDarius

Reputation: 42969

It is possible, yes.

If you're using Eclipse and the ADT plugin, you just have to do the following things:

  • copy the commons-fileupload-1.2.1.jar file to the root of your project.
  • Right click on your project icon to access its properties.
  • go to "Java Build Path"
  • click on the "Libraries" and then on "Add JARs"
  • choose the commons-fileupload file, and click OK.

You're then ready to go. ADT will automatically convert the classes in the jar file into the dex file format for use in dalvik, and embed them into your APK file.

If you need documentation on how to use the library just follow the user manual: http://commons.apache.org/fileupload/using.html

Upvotes: 2

Related Questions