static byte[] loadBinaryFromZip(File inZip, S fileName) ctex { ZipFile zip = new ZipFile(inZip); try { ZipEntry entry = zip.getEntry(fileName); if (entry == null) //fail("Entry " + fileName + " not found in zip file: " + inZip.getAbsolutePath()); ret null; InputStream fin = zip.getInputStream(entry); new ByteArrayOutputStream baos; copyStream(fin, baos); fin.close(); ret baos.toByteArray(); } finally { zip.close(); } }