File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes Image to BufferedImage converter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Image to BufferedImage converter" Watch "Image to BufferedImage converter" New topic
Author

Image to BufferedImage converter

hadzrul hashim
Greenhorn

Joined: Jan 03, 2007
Posts: 6
Hi all,

I found this code somewhere on Internet. I use this code in my web application. No problem when using this BUT it slow on rendering the image. How do I increase the performance? Is there a way to enhance this method?

Here is the code: (for someone who need it, just put to your application and run it)

Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8903
    
    8

Define "slow". I've used similar code to generate on-the-fly thumbnails for my personal web site and it worked fine. Have you profiled your app to make sure this is where the bottleneck is? Is your hardware maxed out (i.e. the CPU or disk utilization is 100%)?
Unfortunately, image processing in Java is pretty much a black box. There isn't much we can do programmatically to influence its behavior.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Image to BufferedImage converter