• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Transfering Multiple PNGs  RSS feed

 
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 ]
 
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
Boost this thread!