3 ms·
Pretty cool, but the method for "downloading" looks painful (converting the generated ZIP to base64 in order to use it as an URL). I wonder what the size limit
by udp 15y ago
Pretty cool, but the method for "downloading" looks painful (converting the generated ZIP to base64 in order to use it as an URL).
I wonder what the size limit is?
- icebraining 15y agoIE8 only supports 32Kbytes; not sure about other browsers: https://sharovatov.wordpress.com/2008/05/13/data-uri-browser-issues/ https://sharovatov.wordpress.com/2008/05/13/data-uri-browser...
- dpup 15y agoChrome (last time I checked) will crash if the data URL is over 2MB. Luckily there are the Blob and BlobBuilder APIs now. Using Stuart's code as a starting point I've successfully built >700MB zip files on flixtractr.com. The main downside is that when you request the blob URL not all browser/platform combinations give it an extension that matches the mime-type, so you have to tell your users they may need to rename the file. The platform is getting there. Slowly.
- dpup 15y agohttp://crbug.com/103234 http://crbug.com/103234 tracks the crash I mentioned.
- masklinn 15y ago> Pretty cool, but the method for "downloading" looks painful (converting the generated ZIP to base64 in order to use it as an URL). Yep, it would be cool if that was included in the API and they used createObjectURL[0] where available. Although I don't think it'd fix the name issue, as there's a BlobBuilder, but only File objects have a name and there's no FileBuilder (a File's name is readonly...) [0] http://www.w3.org/TR/FileAPI/#dfn-createObjectURL/window.URL.createObjectURL http://www.w3.org/TR/FileAPI/#dfn-createObjectURL/window.URL...