Size limits ? Not all files are archived #25
Replies: 6 comments 3 replies
-
This works here. Try getting the latest version of the whole repository (all files). If still not working the you can ZIP your non-working project and attach it here so I can take a peek. Btw, there is no reason to use memory streams for what you are doing. Just using plain filenames is more efficient in your case. Instead of
just call
or even shorter
With
Don't fiddle with The use-case for in-memory operations (which is what you are using here) is very specific and compressing MP3 files is not one of these. |
Beta Was this translation helpful? Give feedback.
-
Hi wqweto, Thanks for help :) I though that using memory was nrequiered to push the files to zip into a subfolder of my choice. Just tested with changes you posted, it looks ok now , all files seems to be in the archive file, and this last is not corrupted. (Also, mp3 files was just for testing with "big" files instead of several smalls). Rest to implent creating subfolder when unzipping (in my project), but I think it will be also fine onece done. Keep you informed :) |
Beta Was this translation helpful? Give feedback.
-
Hi wqweto, I also applied WriteBinaryFile on unzip script of my project, still look running well :) Just noticed (but was the case before applying this changesà), that unziping is slower than ziping (Machine is i7-2600 + SSD). Thanks :) |
Beta Was this translation helpful? Give feedback.
-
Oops I missed words in my previous message, I would say I applied WriteBinaryFile removal on unzip script :) Here is the code I use :
It runs but it's slow (I find). |
Beta Was this translation helpful? Give feedback.
-
I was comparing between compression (creating the zip file) and extraction (form the created zip file) with cZipArchive. Not with another archive software like 7-zip or winrar. I will try to make a test with one extract call to compare (even if I will have to keep one extract per files as well as I extract the in folder depending of what I listed in the other thread (CSIDL etc etc). |
Beta Was this translation helpful? Give feedback.
-
Hi, I revisited my code and look faster now :) Thanks for your help ! |
Beta Was this translation helpful? Give feedback.
-
Hi :)
I'm near from achieve backup and restore feature, looks running well with Jingle Palette's sample files.
And I tried with my jingles set (folder size is 788 MB but not all files are used), and on restoring , wow, a lot of jingles missing.
Started to investigate, files are listed, but archive is corrupted, I can not read or extract any file in Windows explorer. Zip file size in 262 144 kB (in Size column of Explorer)
Tried with removing files to archive, zip is no long corrupted since its under 262 144 kB.
Tried with some files with the test/basic project to rid of an eventually wrong code in my project.
Here is the co, based on existing Command3_click :
The result is that only the Ep.2 2017-06-04 (Export FB mono).mp3 is in the zip file.
About progress, I see that the other files are displayed for a short time than first , and percentage not goes to 100% (or near) for each file, but only around 30% max.
Some idea of what I do wrong ? (Of course, files are present and not bad).
Thanks :)
Couin
Beta Was this translation helpful? Give feedback.
All reactions