JSZip is a javascript library for creating, reading and editing .zip files, with a lovely and simple API. Current version : v3.10.1 License : JSZip is dual-licensed. You may use it under the MIT license or the GPLv3 license. See LICENSE.markdown. Example var zip = new JSZip(); zip.file("Hello.txt", "Hello World\n"); var img = zip.folder("images"); img.file("smile.gif", imgData, {base64: true}); zi
要件別のドメインの画像URLから画像を取得し、zip形式でダウンロードしたい。 こんな感じ。(twitterの画像URL(https://pbs.twimg.com/~.jpg)をlocalhost上から画像として取得して、zipでDL) XMLHttpRequestとか使ってクライアントだけで完結させようとすると、Cross Origin Resource Sharing Blockedに引っかかる。 No ‘Access-Control-Allow-Origin’ header is present on the requested resource. Origin 'http://127.0.0.1:9001’ is therefore not allowed access. なので、サーバーサイド(Node.js)側で画像をURLからbase64に変換。それをクライアントに譲渡し、
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く