我有以下base64
编码的字符串,其中包含pdf
文件。当我尝试使用var url = 'data:application/pdf;base64,' + base64encodedString; window.open(url, '_blank');
在Chrome / FF中打开文件时,工作正常但在IE 10中无法正常工作。任何帮助都可以在IE中查看相应的base64编码的pdf文件。
JVBERi0xLjQKJeLjz9MKMyAwIG9iago8PC9MZW5ndGggMTE1My9GaWx0ZXIvRmxhdGVEZWNvZGU+PnN0cmVhbQp4nI2XbW/bNhDH3/tT8NXQAavCJ1HigAF17SRI29hNrHR7y1lsp8CWXYne5m+/k2R5NcVTgiKok//97o6n4+n8ffI+mwhFkiQhWT6h5C1n/adEnT4w2n+Scf8nJZtP19nkYfK9/eHkAwi3ExrF5J9JmkaCJIoSRmWkCPis7GR1EpnmkW5VwUSUemqHSjGGgoqjXI2hoOIo1WMoqCiqNB9BGxVHk3gMBRVH43QMBRVHJRtDQcVRLsdQUHGUJmMoqCga67FuatRL9KFpbUYo/GNE07YfoX23k6ub5uQk+zp588WW+a4iC7O1v/6cPTf9/APEtGz71KemZE5WT1m2XJCfyGq5WA3RLp5Mw/Fmu9KZtcNDDsAPtiyP5JPZYqEEC4e63ppigwcaYM9NoHf1YW8rV4GLonSbaL1D4zIZjjvN88rWNR55AHJKfr9eZUSIRyhv9nh9nSFBlU489gaquauO4w9yiN1+WmZ3U3I/XTzdTGfZ0+Pd4pbMlvefscApRQK/9ESHpDHmXV7XI7VVSnjMXVnv7doVuxICbvemPOIBB/D7Q2XNgXyxVeFMjcWUym/2Q17AEfFAA+LfNeaca8/00e53lSOLw/ZPOxJiwOEhGMdrNjdupDsGJKNXTF9xymIkWKwHk6EpFsmOezzOEJrP3pKbojQb0uInEH2rxvDykyyNZHBIwvCVLEpB1BdDUtAIbhwqJyzSaSszHkcx93SuE/gflSUXEeWtrngEe4Mnp3GUdN45jbRPd4mzc2Y0lDgmnxJn/2dGA4ljcp84OydOQ4mzc+I08G7hiYpSBs/FH9rZzsFDfXBHrH/EuRVUC3xeksUu0DiCtzXwzVfuuLFhIhF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