Sending a response back to MIDlet from Servlet

S

Saaji

Hi ppl,
I'm trying to do a MIDlet/Servlet communication via
HTTPConnection using the POST method. I can send a parameter to my
Servlet from the MIDlet but how can I retrieve the information after
processing done by the servlet? I give an out.println("<processed
info>") but it does not seem to return anything.
Another doubt is can I send images/pics to my MIDlet from the
Servlet as part of a response? If so what all formats does the MIDlet
support?
Please reply as soon as possible.

Thanks in advance,
Sajida
 
D

Darryl L. Pierce

Saaji said:
Hi ppl,
I'm trying to do a MIDlet/Servlet communication via
HTTPConnection using the POST method. I can send a parameter to my
Servlet from the MIDlet but how can I retrieve the information after
processing done by the servlet? I give an out.println("<processed
info>") but it does not seem to return anything.

Return the response as the content of the HTTP response, and have the MIDlet
extract it.
Another doubt is can I send images/pics to my MIDlet from the
Servlet as part of a response? If so what all formats does the MIDlet
support?

The easiest way is to define your own protocol for packaging that data in
the response content.

--
Darryl L. Pierce <[email protected]>
Homepage: http://mcpierce.multiply.com/
"McVeigh's lawyer got him the death penalty, which, quite frankly,
I could have done." - Jon Stewart
*** Free account sponsored by SecureIX.com ***
*** Encrypt your Internet usage with a free VPN account from http://www.SecureIX.com ***
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top