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.
# 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.
# 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 >
