submitting image files to a server from j2me.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   danusadevi_vijayakumar
Posted On:   Sunday, March 2, 2003 01:12 PM

This is the environment description : Server: Desktop version of Tomcat 4.1.12 Client: I have downloaded the wireless toolkit from Sun website. KToolbar. J2ME emulator. Aim: Using the j2me kit I have now I want to be able to upload a .png file already stored in the localmachine (ofocurse since it is a cell emulator..I will be creating a image from the c drive) to the servlet. Question: How do I read image information in j2me. Like if I want to read the byte information in java I would use fileinput but what do I do in j2me. Basically how do I upload the image file (.png format ofcourse) from the j2me device to the servlet. I just can't come up with   More>>

This is the environment description :

Server: Desktop version of Tomcat 4.1.12

Client: I have downloaded the wireless toolkit from
Sun website. KToolbar. J2ME emulator.

Aim:
Using the j2me kit I have now I want to be able to
upload a .png file already stored in the localmachine
(ofocurse since it is a cell emulator..I will be
creating a image from the c drive) to the servlet.

Question:

How do I read image information in j2me. Like if I want to read the byte information in java I would use fileinput but what do I do in j2me. Basically how do I upload the image file (.png format ofcourse) from the j2me device to the servlet.

I just can't come up with a way of writing the image
information in the outputstream from j2me to servlet.

I know that I can create an image from the local
machine using createImage. But I am not sure how to
get the image information (could be bytes/bits etc) so
that I can write it to the outputstream as a byte
array probably (just an idea...). I am stuck there.

dan

   <<Less
About | Sitemap | Contact