This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

how to compress image file size

Aug 8th, 2007, 11:06 PM

is there a way to compress a file size of an image in Spring?

I'm trying to do it using javax.imageio.* API, sadly my image data is rendered as byte[] and FileImageOutputStream which handles the image to be compressed needs a File object. I don't know how will i cast this.