moxiecode / moxie

Pollyfills for XHR2 and File API
GNU Affero General Public License v3.0
486 stars 135 forks source link

How to get a blob as dataurl? #176

Closed irbian closed 7 years ago

irbian commented 7 years ago

Hi!

I would like to create a link with a response blob as content, so I can click on it to download it. It's possible? My tests hasn´t been succesful

jayarjo commented 7 years ago

No. Flash and Silverlight do not support anything like this. And for HTML5 runtime you could do it yourself, by feeding source blob to URL.createObjectURL().

irbian commented 7 years ago

Thanks for your answer :)