final static byte[] EmptyZip={80,75,05,06,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00}; public static void createEmptyZip(String path){ try{ FileOutputStream fos=new FileOutputStream(new File(path)); fos.write(EmptyZip, 0, 22); fos.flush(); fos.close(); }catch (FileNotFoundException e){ e.printStackTrace(); } catch (IOException e) { e.printStackTrace(); } }
source share