File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java Micro Edition and the fly likes Transfering Multiple PNGs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Java Micro Edition
Bookmark "Transfering Multiple PNGs" Watch "Transfering Multiple PNGs" New topic
Author

Transfering Multiple PNGs

Burak Celebi
Greenhorn

Joined: Feb 08, 2005
Posts: 14
Hi,

How can i send an object from a servlet to a midlet?

This Serializable object consists of several pngS and some primitive variables.
We can do send and receive in j2se by writing the object to ObjectOutputStream and reading from ObjectInputStream.

However ObjectInputStream doesn't exist in j2me.

How can i solve this problem, any ideas?

Actually my real problem is only transfering many png files(that are sent by servlet according to user input from midlet) with just one connection.

I have nearly 6000 png files. Is it an easy way to create and send a single png consists of the requested png files?

Thanks in advance.

[Edited by Michael Yuan: Please do not use "URGENT" in subject. Thank you.]
[ March 22, 2005: Message edited by: Michael Yuan ]
Jari Kemppinen
Ranch Hand

Joined: Nov 28, 2004
Posts: 34
A midlet cannot process objects.
Jari Kemppinen
Ranch Hand

Joined: Nov 28, 2004
Posts: 34
Sorry you canuse objects but not serialization.
Burak Celebi
Greenhorn

Joined: Feb 08, 2005
Posts: 14
so how to solve? any ideas?
Jari Kemppinen
Ranch Hand

Joined: Nov 28, 2004
Posts: 34
I guess you can try to encapsulate the image bytes into an xml document and send that through.
Burak Celebi
Greenhorn

Joined: Feb 08, 2005
Posts: 14
This sounds cool Jari. I will try it.

Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Transfering Multiple PNGs