public void compress(InputStream embedFile) { jpg.Compress(embedFile); try { dataOut.close(); } catch (final IOException e) { } }