aspose file tools*
The moose likes I/O and Streams and the fly likes Images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Images" Watch "Images" New topic
Author

Images

manju natha
Greenhorn

Joined: Jan 29, 2003
Posts: 1
Does nyOne know how to copy images from one location to another using the new NIO package,at the same time changing its size and filetype like gif,jpg or jpeg??
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Well, java.nio can help you copy things very efficiently. However if you want to interpret image data, that's something else altogether, and you probably can't (yet) benefit from the new java.nio classes for this. You should probably check out the new Java Image I/O package.
What exactly do you want to do? When you say "changing its size", do you mean the file size, or the display size? Either way, this will have little to do with java.nio - editing image data to derive a new image representation is much more complex than simply reading and writing data. Similarly, what do you mean about changing jpg to gif? Do you really want to transform a gif file into a jpg, or vice versa? Why? What benefit do you hope to get from this?


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Images
 
Similar Threads
page content type
Graphs in JSF
Where do you live?
utf8 to unicode..from browser to oracle db
Directory Traversal