• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

BufferedImage File Conversions Problem

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Mods can delete this post as i solved the problem
reply
    Bookmark Topic Watch Topic
  • New Topic