Closed mcfriend99 closed 1 month ago
I'm using it to embed zip archives myself and never got any issues. I can check your code when I'm back on my PC. What happens if you embed another, smaller file than a zip archive? What parts are missing, or does this only happen once you reach a certain file size?
Any reason why you skip the compatibility check?
I've seen the problem and resolved it. It has nothing to do with ember. Also, I noticed some filetypes that have their own magic headers were having issues unless I skip the compatibility check.
I'm using the function below to embed:
The problem currently is that anytime I embed a zip archive, upon reading the zip archive has a size shorter than the original.
Upon inspection, I noticed that while my initial executable size was
3.1 mb
before embedding a file of45 mb
, the final executable size read46.8 mb
. When extracted, the size of the zip file created is43.7 mb
which means there's a missing1.3 mb
in the archive written.What could be causing this?? How do I resolve this?
Here's the code I'm using to extract:
where
r = attachments.Reader(name)
.All helps appreciated.