Download blobs locally using Safari

后端 未结 6 1689
没有蜡笔的小新
没有蜡笔的小新 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:05

    The only solution that I have come up with is making a data: url instead. For me this looks like:

    window.open("data:image/svg+xml," + encodeURIComponent(currentSVGString));
    

提交回复
热议问题