| 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!
|
 |
 |
|
|
subject: Transfering Multiple PNGs
|
|
|