How to speed up unzipping time in Java / Android?

I don’t know if unzipping on Android is slow, but copying byte for byte in a loop is surely slowing it down even more. Try using BufferedInputStream and BufferedOutputStream – it might be a bit more complicated, but in my experience it is worth it in the end. BufferedInputStream in = new BufferedInputStream(zin); BufferedOutputStream out … Read more

How to read and extract zip entries from java.sql.Blob type zip file without having FileInputStream or filepath as a string java

This is a more generic solution than just zip files (also Java’s native ZIP support does not handle all ZIP formats [1]). Use the loadjava utility to load commons-compress and it’s dependency xz: loadjava -user USERNAME/PASSWORD@SID xz.jar commons-compress-1.10.jar (Update as needed for newer versions) Then you can create a Java source inside the database: CREATE … Read more