How to use httppost

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

How to use httppost

Postby Addion » Thu Jan 29, 2009 12:09 pm

I want to upload mp3 files to a webserver. I like to use httppost, but don't know how to get along my song to POST.

DefaultHttpClient httpclient = new DefaultHttpClient();
HttpPost httppost = new HttpPost("http://www.test.com");
File f = new File("/sdcard/mysong.mp3");
httpclient.execute(post);
Addion
Developer
Developer
 
Posts: 29
Joined: Tue Nov 18, 2008 3:49 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 4 guests