hi, I'm trying to save textural information into an image. I know that the image meta-data does that, but I can't figure out how to save the data into the meta-data.
can anyone give me simple code that saves the data in the meta-data I also need to be able to extract the data. I found a site http://www.drewnoakes.com/code/exif/ that exracts the data but not save in.
posted 12 years ago
here is my code (doesn't work):
i get an exception, javax.imageio.metadata.IIOInvalidTreeException: JPEGvariety and markerSequence nodes must be present at com.sun.imageio.plugins.jpeg.JPEGMetadata.mergeNativeTree(JPEGMetadata.java:1088) at com.sun.imageio.plugins.jpeg.JPEGMetadata.mergeTree(JPEGMetadata.java:1061) at playaround.IIOMetaDataWriter.run(IIOMetaDataWriter.java:59) at playaround.Main.main(Main.java:14)