How to send raw data

I am wondering what is the best practice to send raw data from a MIDlet to a web servlet/JSP-capable server ?

Let's illustrate why I need this feature: imagine I have design a drawings application and that I want to send my drawings via email and a local server which can send mail is available. I would like to send the drawings to my server through a connection, and then I will design a servlet that furtherly sends the e-mail.

[451 byte] By [edouard.mercier] at [2007-9-26 9:25:57]
# 1

> I am wondering what is the best practice to send raw

> data from a MIDlet to a web servlet/JSP-capable server

You can use the httpConnection class to communicate with a servlet.

I have a small sample that uses an HTTP GET request:

http://corej2me.com/SourceCode/index.html

Look in the networking section

john

jwmuchow at 2007-7-1 20:46:35 > top of Java-index,Java Mobility Forums,Java ME Technologies...