Clarification needed about Serialization of Image Objects

Hi,

As a part of my project i am suppose to fetch an image from a server to a phone. The phone uses J9 environment while the server uses JVM for regular java server side code. Will there be a problem if I serialize the image at the server and send it and then try to reconstitute it on the client on the phone. I read through the mailing lists that this may not work. Please let me know whether this approach can work(if any specific version is needed) or else if there is any any potential problem with this, if so is there any workaround possible.

Thank you,

Ajay Kamath.

[598 byte] By [AjayKamatha] at [2007-11-26 21:38:36]
# 1
In which form the images are stored?It it some serialized java object or it is stored as row image data?
LRMKa at 2007-7-10 3:21:44 > top of Java-index,Core,Core APIs...
# 2
I can't see any benefit in serializing it as opposed to just sending the raw bytes around, just overheads.
ejpa at 2007-7-10 3:21:44 > top of Java-index,Core,Core APIs...
# 3

> Hi,

> As a part of my project i am suppose to fetch

> an image from a server to a phone. The phone uses J9

> environment while the server uses JVM for regular

> java server side code. Will there be a problem if I

> serialize the image at the server and send it and

> then try to reconstitute it on the client on the

> phone. I read through the mailing lists that this may

> not work. Please let me know whether this approach

> can work(if any specific version is needed) or else

> if there is any any potential problem with this, if

> so is there any workaround possible.

One problem is the fact that the Image class isn't Serializable. Another problem is that sending uncompressed Image data may not be desireable.

Jim S.

Niceguy1a at 2007-7-10 3:21:44 > top of Java-index,Core,Core APIs...
# 4

well it you want you can use image io at the server side to conver the images to a common compressed format such as png.

Also if the receiving end is ok with a little loss of quality you can use a lossy compression like jpeg and reduce the size further to get better data transfer rates.

But this will involve processing overheads.

LRMKa at 2007-7-10 3:21:45 > top of Java-index,Core,Core APIs...