FileOutputSteam write - remove the NUL bytes at the start of the zip file — oracle-tech

    Forum Stats

  • 3,681,447 Users
  • 2,238,013 Discussions
  • 7,831,224 Comments

Discussions

FileOutputSteam write - remove the NUL bytes at the start of the zip file

Hi,

We have a requirement to create a zip file, the zip file has 3 or 4 files inside it, while these files are getting generated in the back ground NUL bytes are getting added to the zip file, so the file is corrupt or it is not possible to process the zip in the application. Could you please suggest how we can remove these NUL bytes in the zip and the zip should start with PK when it is opened in notepad.

Thanks.

Answers

Sign In or Register to comment.