Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open method throwing error for zip file greater than 4GB #259

Open
vijayendra-notion opened this issue Jul 15, 2022 · 0 comments
Open

Open method throwing error for zip file greater than 4GB #259

vijayendra-notion opened this issue Jul 15, 2022 · 0 comments

Comments

@vijayendra-notion
Copy link

vijayendra-notion commented Jul 15, 2022

I have a zip file of 9GB containing multiple files and attachments. I am using the stream/buffer method returned in the file object by the open method. I able to stream the files which is having offsetToLocalFileHeader < 4294967295. Once it reaches this offset, all the files after that have an offsetToLocalFileHeader set to null and it is not able to read the file buffer after this point

{
  compressedSize: 41817685,
  uncompressedSize: 41805057,
  fileNameLength: 36,
  extraFieldLength: 12,
  fileCommentLength: 0,
  diskNumber: 0,
  internalFileAttributes: 0,
  externalFileAttributes: 0,
  offsetToLocalFileHeader: null,
  lastModifiedDateTime: 2022-07-06T10:09:58.000Z,
  pathBuffer: <Buffer 54 45 34 54 2f 61 74 74 61 63 68 6d 83 6e 74 73 2f 38 33 32 33 30 37 81 2f 38 30 32 38 31 39 33 2e 7a 69 70>,
  path: 'TEST/attachments/8323076/8028193.zip',
  isUnicode: 0,
  extra: {
    signature: 1,
    partsize: 8,
    uncompressedSize: 4828724084,
    compressedSize: null,
    offset: null,
    disknum: null
  },
  comment: '',
  type: 'File',
  stream: [Function (anonymous)],
  buffer: [Function (anonymous)]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant