Results 1 to 4 of 4

Thread: how to compress image file size

  1. #1
    Join Date
    Aug 2007
    Posts
    4

    Default how to compress image file size

    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.

    Is there a less hassle way to do this?Pls Help

  2. #2
    Join Date
    Aug 2006
    Posts
    26

  3. #3
    Join Date
    Sep 2006
    Location
    UK
    Posts
    8,425

    Default

    This appears to be a duplicate..............
    http://forum.springframework.org/showthread.php?t=22669
    Last edited by karldmoore; Aug 27th, 2007 at 02:37 PM.
    Barracuda Networks SSL VPN Lead Developer
    http://pramatr.wordpress.com
    http://twitter.com/karldmoore
    http://www.linkedin.com/in/karldmoore
    Any postings are my own opinion, and should not be attributed to my employer or clients.

  4. #4
    Join Date
    Aug 2007
    Posts
    4

    Default

    is that so? sorry
    anyways,mine is not an issue of file accessing its of compression.i already resolved it using ImageWriteParam's setCompressionQuality.Regarding byte conversion see this http://www.koders.com/java/fid575707...DC9774C8D.aspx

    @blair
    thanks for the help

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •