public static byte[] mediaFile (Media media) throws IOException {
        /*String filename = media.jarFilename();
        return media.getClass().getResourceAsStream("/media/"+filename);*/
        return instance.gwcfile.getFile(media.id);
    }
extracts media file data from cartridge
main/src/main/java/cgeo/geocaching/wherigo/openwig/Engine.java