For downloading media contents wht to use:: Http or Socket or Stream?

Hi frndz,

I have developed an application which reads the XML file... for that I am using the HttpConnection.

also I am downloading contents like Images and videos.... for that also I am using the HttpConnection.

But I was asked a question by someone, why you are using HttpConnection ONLY?

Why you have not used StreamConnection or SocketConnection?

and I only had answer: HttpConnection is stateless protocol.

I also know this question is raised no. of times but still I am not getting the points which distinguish between various connection classes.

can anyone please help me out.

thanking you,

Alpesh

[665 byte] By [alpesha] at [2007-11-27 5:30:06]
# 1
these articles may help you to know why: http://www-128.ibm.com/developerworks/wireless/library/wi-jio/ http://developers.sun.com/techtopics/mobility/midp/articles/midp2network/S.
suparenoa at 2007-7-12 14:53:51 > top of Java-index,Java Mobility Forums,Java ME Technologies...