This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

BufferedImage File Conversions Problem

 
Dexter O'Connell
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Dexter O'Connell
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mods can delete this post as i solved the problem
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic