Help using Koriolis ZipStream Module
BlitzMax Forums/BlitzMax Programming/Help using Koriolis ZipStream Module
| ||
Hey folks! I'm in need of a bit of help using the ZipStream module. What I want to be able to do, is load an image from a .zip file, but I can't seem to get it to work. I'm probably doing something dumb, so here's a the code and a download. In the same folder as the code, I have a zipped folder named Foldo, which contains the image 1 within it. If nothing is wrong with my code, then I probably need to reinstall MinGW, lol. vvvvvvvvvDOWNLOADvvvvvvvvvvvvv http://www.mediafire.com/?bzq0ymzzy4tycjm Thanks! |
| ||
. |
| ||
Your are trying to draw an image without Graphics(). In the zip to download there is a folder "Foldo". So you need "zip::Foldo.zip//Foldo/1.png" Why is your zip's filename .zip.zip? Very confusing. This code works, when the zip is name "Foldo.zip" and the 1.png is in the folder "Foldo" |
| ||
lol, woops! Can't believe I forgot to include 'graphics' ;) Half of programming seems to be acting like a dumb a**. Works fine now! Thanks a bundle Volker! |
| ||
Now I'm having a bit of difficulty getting SetZipStreamPassword to work, lol. I want to read from a compressed, password protected file, but am not sure how to use SetZipStreamPassword. I know what it's suppose to do, just not how to use it correctly. Would anyone mind giving me a quick example? Thanks, |
| ||
A simple 'SetZipStreamPassword("Yourpath\Foldo.zip", "yourpassword")' before accessing the zipfile should do it. |
| ||
I tried that ;( Didn't seem to be working. I'll give it another shot in a bit. |
| ||
Check your mails plz. |
| ||
Thanks a bundle Volker! It took me awhile to get your demo working, but I finally realized what I was doing wrong. I was doing this. SetZipStreamPassword("zip::Foldo.zip", "password") Instead of doing this, SetZipStreamPassword("Foldo.zip", "password") It's always the dumb stuff that gets you ;) Thanks again Volker, you really made my day helping me finally get this working. I now have my graphics folder zipped up tight, with a rather nifty password, and I even changed the extension from .zip, to .TurkeyFeet so you'll need a custom program to even look inside the folder :D |
| ||
Hi Werdna, I was doing this. SetZipStreamPassword("zip::Foldo.zip", "password") I did the same the first time :-). |