Win a copy of Functional Reactive Programming this week in the Other Languages 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