aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes BufferedImage File Conversions Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "BufferedImage File Conversions Problem" Watch "BufferedImage File Conversions Problem" New topic
Author

BufferedImage File Conversions Problem

Dexter O'Connell
Greenhorn

Joined: Oct 05, 2004
Posts: 9
hi,
ive got a node containing all the information about a png file. im using this because i need to append metadata to the png file and save all the information in the node. im then outputting this file so i need to use a bufferedImage object.

this is the code ive written but its throwing up an error.

BufferedImage biInput = ImageIO.read((File) nodeImageMetaData);

java.lang.ClassCastException

is there a way of converting this node into a file so that i can read it into the BufferedImage?

thanks for your help

dex


If you build it..... HE will come
Dexter O'Connell
Greenhorn

Joined: Oct 05, 2004
Posts: 9
Mods can delete this post as i solved the problem
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: BufferedImage File Conversions Problem