Comments (6)
Good idea. If JSZip can use the File API (when reading or writing), it will be easier and more straightforward to use in some use cases.
I have started working on it.
from jszip.
This is on my branch issue23. This should solve the stackoverflow issue with a
sendFile("x.zip", zip.generate({responseType:"blob"}));
I still need to be sure I didn't break older browsers (I will be able to test IE 6-9 the next week).
@Stuk : could you check the updated documentation ? I would like to be sure you're ok with the responseType parameter and the new examples.
from jszip.
The extra option looks good, but I think just type
would be a better name, as there is no response :)
Do you think it would be a good idea to deprecate the base64
option in lieu of type: "base64"
to keep things simple?
Finally, could you add the other possible values (uint8array, arraybuffer ) to the jsdoc?
from jszip.
You're right, type
is better. I spent to much time playing with the ajax's responseType
:)
I think that deprecating base64
is a good idea : generate({type:"string"})
doesn't clearly show what the output will be (but will confuse the reader) and generate({type:"arraybuffer", base64:true})
doesn't make any sense.
My branch issue23 should be ready this week-end !
from jszip.
JSZip now generates Blobs / ArrayBuffers / Uint8Array, check the documentation. Thanks for the bug report :)
from jszip.
Good job!, I consider JSZip a very usefu piece of code. Keep going...
Cheers, Peter
Von: David Duponchel <[email protected]>
An: Stuk/jszip <[email protected]>
Cc: pbhd <[email protected]>
Betreff: Re: [jszip] JSZip with Blob unexpected behaviour (#23)
Datum: Tue, 22 Jan 2013 21:40:00 +0100
JSZip now generates Blobs / ArrayBuffers / Uint8Array, check the
documentation [1]. Thanks for the bug report :)
—
Reply to this email directly or view it on GitHub [2].
Links:
[1] http://stuk.github.com/jszip/#doc_generate_options
[2] #23 (comment)
from jszip.
Related Issues (20)
- Same zip different zipContents when loadAsync
- JSZip v3.10+ breaks in some sandboxed browser environment because dependency setimmediate breaks HOT 1
- Can we generate LF instead of CRLF
- Reading Folder Doesn't Work
- Large zip file breaks with loadAsync
- Math.random() usage
- Is jszip unmaintained? HOT 9
- Zipping 1GB+ and splitting to chunks is slow - is there a way to speed it up?
- Can't use ReadableStream from generateNodeStream in the PutObjectCommand of s3
- escape and unescape are deprecated
- Error: End of data reached
- Failed to resolve module specifier.
- ZIP64 Support broken HOT 2
- Add asyncIterator support to NodejsStreamOutputAdapter
- Is there a recommended tool library for parsing rar format compression packages ?
- Can't unzip some zip files HOT 2
- (MIT OR GPL-3.0-or-later) HOT 1
- How to pass the loadAsync method into arraybuffer
- JSZip no longer likes buffers?
- file treating folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jszip.