Register / Login
Swing / AWT / SWT
byte to BufferedImage
posted 8 years ago
I am writing an application that serializes images into an Object as a byte array since the Image is not serializable.
I am dealing with images that is 7000 by 7000. So at I/O processing of deserializing the object from byte to
, there is a slight delay in processing time. (0.3 seconds).
bimg = ImageIO.read(byteArray);
My question is: Is there a way to process that byte to
in say 0.1 seconds?
Once the byte is in
, dealing with the images itself takes no time at all, just the conversion from byte to
Perhaps there's a way to store Image into a serialized object and deserialize it without having to deal with conversions from byte to
I tried overriding the readObject and writeObject when serializing/deserializing and the delay of 0.3 seconds still exists.
That's why I'm making a callout to see if there's an alternative.
Reading tif files on x64 system
Caching BufferedImages from byte
Creating Image Thumbnails
convert java.awt.Image to com.lowagie.text.Image
How to preserve xmp metadata when resizing jpg images