HTTPS POST (SSL) with Multipart - HTTPURLConnection or HTTPClient(Apache library)

by Prabhu » Tue, 25 Jan 2011 02:51:06 GMT


Sponsored Links
 Hi All,

I am developing a Android Client which will ipload files to a server
using HTTPS POSRT with Multipart.
As i have read  there are two ways to do this:

1. Use HttpURLCoennection and embed the multipart data and then send
it.
2. Use Apache provided mime for multipart and then use HTTPClient.

What is the recommeneded way from above.

I have read that

HTTPURLConnection is buggy in android
and the post implementatino is not that clean as we have to literally
create the data stream with boundaries.

HTTPClient: the code is cleaner and fewer :) , but we have add extra
jar file for multipart support.

Any recommenation in this will be helpful.

Thanks,
Prabhu

-- 



Other Threads

1. SQLiteStatement

Does anyone have any code or know of any code, or just know where to find
the procedures/functions,  that would allow me to set the value of
Parameters by Parameter Name (field Names) for prepared statements instead
of the index?

If I have the following:

myStatement = Db.compileStatement("Insert into myTable (load_id, load_name)
values (?, ?);

Ie. I want to do something like the following :

myStatement.parambyName(oad_id.value = 123;
myStatement.parambyName(oad_name.value = 456;

instead of :

myStatement.bindString(1, 23;
myStatement.bindString(1, 56;

I sure someone has done the work, and I would prefer not to duplicate it
if possible.

Thanks for any help. 


Sincerely,

Brad Gies


-----------------------------------------------------------------
Brad Gies
27415 Greenfield Rd, # 2,
Southfield, MI, USA
48076
www.bgies.com www.truckerphone.com
www.EDI-Easy.com www.EDI-Simple.com
-----------------------------------------------------------------

Moderation in everything, including abstinence



--~--~---------~--~----~------------~-------~--~----~

2. rtsp/http Streaming

Hi People,

I need your help regarding streaming in android. I read some of the
previous discussions but I have a few doubts which i thought of
clarifying from you . Please help me with the following aspects:

(i) Does android supports RTSP and HTTP streaming ??

(ii) One discussion read -> "Streaming does not work in the emulator
environment due to some firewall issues in the emulator network
layer". Is this issue not resolved till now??

(iii) I used the api demo code available @ \ApiDemos\src\com\example
\android\apis\media\MediaPlayerDemo_Video.java

Here I set the path as->  path = "Rtsp://10.2.5.220/sample_50kbit.
3gp";
OR as -> "path = "rtsp://10.2.5.220/sample_100kbit.mp4"

THIS IS CRASHING @ mMediaPlayer.prepare(); (I am using darwin
streaming server)

This is playing fine in local playback. But, I am not able to
understand why it is crashing here. Please suggest.

(iv) The supported codecs are MPEG4 Video, AVC, MPEG4 Audio, AMR, and
H263. Am I correct??

I await your response. Kindly assist.

Thanks.
--~--~---------~--~----~------------~-------~--~----~

3. Android apps/apks and native libraries

4. In need of a Context

5. touchscreen support.

6. Alpha Buffer support on G1

7. eglSwapBuffers slow?