Meaningless Drivel is fun!*
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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: 8843
    
    7

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]
 
jQuery in Action, 2nd edition
 
subject: Image to BufferedImage converter
 
Similar Threads
Need help ImageToCode
lagging on loading image
works on WinXP jdk 1.6 but not Linux jdk 1.5
Displaying images and thumbnails directly from database
How to transfer a bufferedImage Object?