Setting the src attribute of an IFrame to data:application/pdf;base64?

后端 未结 3 574
不思量自难忘°
不思量自难忘° 2021-01-25 03:38

Setting the src attribute of an IFrame to data:application/pdf;base64, isn\'t working for me, any ideas why?

Here\'s the .aspx markup

<%@ Page Languag         


        
3条回答
  •  生来不讨喜
    2021-01-25 03:40

    It may be tacky to reference wikipedia, but Wikipdia says that there may be some restrictions on which filestypes you are allowed to use the data:filetype;base64 syntax on. Namely, only pictures for now. The IE9 spec, the article says, allows for broader use, but I'm not sure what exactly that entails. In the meantime, you'll just have to use the .pdf file and not just it's base 64 string data.

提交回复
热议问题