data-url

Data URI scheme and Internet Explorer 9 Errors

被刻印的时光 ゝ 提交于 2019-11-26 14:40:30
I'm having a problem using the RFC 2397 data url scheme with IE versions 6-9. My sample code below works without problem when using current versions of Safari, FF, Opera and Chrome. data:text/html;base64,PG1ldGEgaHR0cC1lcXVpdj0icmVmcmVzaCIgY29udGVudD0iMDt1cmw9aHR0cDovL2dvb2dsZS5jb20vIj4g or data:text/html,%3Cmeta%20http-equiv%3D%22refresh%22%20content%3D%220%3Burl%3Dhttp%3A//google.com/%22%3E%20 If the above code is pasted in almost any browser excluding IE it will navigate to google.com, when attempting with IE it fails with the following error. The webpage cannot be displayed Most likely

Is it possible to use data URIs in video and audio tags?

最后都变了- 提交于 2019-11-26 11:01:11
问题 Assuming the following: The browser in question doesn\'t limit the size of data URIs. There is actually a purpose to doing this (so please refrain from asking \"what\'s the point?\" and \"you do realize base64 encoding will expand your file by 33%, right?\"). Is it technically possible to encode an entire video or audio file into base64, and embed it in an HTML document using either <audio> or <video>? 回答1: It should be possible, except in IE8 and below, which does not support Audio/Video

Data URI scheme and Internet Explorer 9 Errors

回眸只為那壹抹淺笑 提交于 2019-11-26 03:58:28
问题 I\'m having a problem using the RFC 2397 data url scheme with IE versions 6-9. My sample code below works without problem when using current versions of Safari, FF, Opera and Chrome. data:text/html;base64,PG1ldGEgaHR0cC1lcXVpdj0icmVmcmVzaCIgY29udGVudD0iMDt1cmw9aHR0cDovL2dvb2dsZS5jb20vIj4g or data:text/html,%3Cmeta%20http-equiv%3D%22refresh%22%20content%3D%220%3Burl%3Dhttp%3A//google.com/%22%3E%20 If the above code is pasted in almost any browser excluding IE it will navigate to google.com,

Download data url file

别说谁变了你拦得住时间么 提交于 2019-11-26 00:16:50
问题 I\'m playing with the idea of making a completely javascript based zip/unzip utility that anyone can access from a browser. They can just drag their zip directly into the browser and it\'ll let them download all the files within. They can also create new zip files by dragging individual files in. I know it\'d be better to do it serverside, but this project is just for a bit of fun. Dragging files into the browser should be easy enough if I take advantage of the various methods available.