ContentHandler ch = new DefaultHandler();
m = new Metadata();
ParseContext pc = new ParseContext();
jp = new JpegParser();
XMPPacketScanner xps = new XMPPacketScanner();
try {
jp.parse(new BufferedInputStream(new FileInputStream(f)), ch, m, pc);
ByteArrayOutputStream baos = new ByteArrayOutputStream();