Download blobs locally using Safari

后端 未结 6 1677
没有蜡笔的小新
没有蜡笔的小新 2020-12-04 21:36

I\'m trying to find a cross browser way to store data locally in HTML5. I have generated a chunk of data in a Blob (see MDN). Now I want to move this Blob to the actual file

6条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-04 22:11

    Have you read this article? http://updates.html5rocks.com/2012/06/Don-t-Build-Blobs-Construct-Them

    Relating to http://caniuse.com/#search=blob, blobs are possible to use in safari.

    You should consturct a servlet which delivers the blob via standard http:// url, so you can avoid using blob: url. Just make a request to that url and build your blob.

    Afterwards you can save it in your filesystem or local storage.

提交回复
热议问题