Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Transfering Multiple PNGs

 
Burak Celebi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A midlet cannot process objects.
 
Jari Kemppinen
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry you canuse objects but not serialization.
 
Burak Celebi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so how to solve? any ideas?
 
Jari Kemppinen
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess you can try to encapsulate the image bytes into an xml document and send that through.
 
Burak Celebi
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This sounds cool Jari. I will try it.

Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic