Base64数据转成Blob文件下载

function downloadBaes64File() {
    let url = "data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,UEsDBBQABgAIAAAAIQBBN4LPbgEAAAQFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACsVMluwjAQvVfqP0S+Vomhh6qqCBy6HFsk6AeYeJJYJLblGSj8fSdmUVWxCMElUWzPWybzPBit2iZZQkDjbC76WU8kYAunja1y8T39SJ9FgqSsVo2zkIs1oBgN7+8G07UHTLjaYi5qIv8iJRY1tAoz58HyTulCq4g/QyW9KuaqAvnY6z3JwlkCSyl1GGI4eINSLRpK3le8vFEyM1Ykr5tzHV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nRlclNldHRpbmdzL3ByaW50ZXJTZXR0aW5nczEuYmluUEsBAi0AFAAGAAgAAAAhAIVV69iaAQAAEAMAABAAAAAAAAAAAAAAAAAArRwAAGRvY1Byb3BzL2FwcC54bWxQSwUGAAAAAAwADAAmAwAAfR8AAAAA"
    let a = document.createElement("a");             // 生成一个a元素
    let event = new MouseEvent("click");             // 创建一个单击事件
    a.download = new Date().toLocaleString();        // 设置图片名称
    a.href = url;                                    // 将生成的URL设置为a.href属性
    a.dispatchEvent(event);                          // 触发a的单击事件
},

或者使用下面的方式下载

// base64  to blob二进制
function BasetoBlob(data) {
    var byteString = window.atob(data);                     // base64 解码
    var arrayBuffer = new ArrayBuffer(byteString.length);   // 创建缓冲数组
    var intArray = new Uint8Array(arrayBuffer);             // 创建视图
    for (var i = 0; i < byteString.length; i++) {
        intArray[i] = byteString.charCodeAt(i);			    // 返回字符的 Unicode 编码
    }
	// 设置Blob对象的类型为Excel
    // return new Blob([intArray], {type: "application/vnd.ms-excel;charset=utf-8;"});
	// 设置为任何类型的二进制数据
    return new Blob([intArray], {type: "application/octet-stream;charset=utf-8;"});
}
function downloadFile() {
    // data:application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;base64,UEsDBBQABgAIAAAAIQBBN4LPbgEA...
    var data = "UEsDBBQABgAIAAAAIQBBN4LPbgEAAAQFAAATAAgCW0NvbnRlbnRfVHlwZXNdLnhtbCCiBAIooAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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ya2Jvb2sueG1sUEsBAi0AFAAGAAgAAAAhALO4wBUIAQAAqgIAABQAAAAAAAAAAAAAAAAAuwoAAHhsL3NoYXJlZFN0cmluZ3MueG1sUEsBAi0AFAAGAAgAAAAhADttMkvBAAAAQgEAACMAAAAAAAAAAAAAAAAA9QsAAHhsL3dvcmtzaGVldHMvX3JlbHMvc2hlZXQxLnhtbC5yZWxzUEsBAi0AFAAGAAgAAAAhAFxcRVyVBgAA5BsAABMAAAAAAAAAAAAAAAAA9wwAAHhsL3RoZW1lL3RoZW1lMS54bWxQSwECLQAUAAYACAAAACEAKlCbhAUDAACzBwAADQAAAAAAAAAAAAAAAAC9EwAAeGwvc3R5bGVzLnhtbFBLAQItABQABgAIAAAAIQDK1BGrigIAADwGAAAYAAAAAAAAAAAAAAAAAO0WAAB4bC93b3Jrc2hlZXRzL3NoZWV0MS54bWxQSwECLQAUAAYACAAAACEAj6MmJT8BAABRAgAAEQAAAAAAAAAAAAAAAACtGQAAZG9jUHJvcHMvY29yZS54bWxQSwECLQAUAAYACAAAACEAf/RX7kUAAADcAAAAJwAAAAAAAAAAAAAAAAAjHAAAeGwvcHJpbnRlclNldHRpbmdzL3ByaW50ZXJTZXR0aW5nczEuYmluUEsBAi0AFAAGAAgAAAAhAIVV69iaAQAAEAMAABAAAAAAAAAAAAAAAAAArRwAAGRvY1Byb3BzL2FwcC54bWxQSwUGAAAAAAwADAAmAwAAfR8AAAAA"
    var blob = BasetoBlob(data);
    var objectUrl = URL.createObjectURL(blob);
    window.location.href = objectUrl;
}

Blob 对象的 type 属性

后缀名		文件类型										类型(type)
.xls		Microsoft Excel								application/vnd.ms-excel
.xlsx		Microsoft Excel (OpenXML)					application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
.csv		CSV											text/csv
.doc		Microsoft Word								application/msword
.docx		Microsoft Word (OpenXML)					application/vnd.openxmlformats-officedocument.wordprocessingml.document
.pdf		PDF											application/pdf
.ppt		Microsoft PowerPoint						application/vnd.ms-powerpoint
.pptx		Microsoft PowerPoint (OpenXML)				application/vnd.openxmlformats-officedocument.presentationml.presentation
.png		便携式网络图形(PNG)							image/png
.gif		GIF											image/gif
.jpeg		JPEG 图片									image/jpeg
.jpg		JPEG 图片									image/jpeg
.mp3		MP3 音频									audio/mpeg
.aac		AAC 音频									audio/aac
.html		超文本标记语言 (HTML)						text/html
.css		CSS											text/css
.js			JavaScript									text/javascript
.json		JSON 格式									application/json
.abw		AbiWord 文档								application/x-abiword
.arc		存档文档(多个文件嵌入)						application/x-freearc
.avi		AVI: 音频视频交错							video/x-msvideo
.azw		亚马逊Kindle电子书格式						application/vnd.amazon.ebook
.bin		任何类型的二进制数据							application/octet-stream
.bmp		Windows OS/2位图图形							image/bmp
.bz			BZip 存档									application/x-bzip
.bz2		BZip2 存档									application/x-bzip2
.csh		C-Shell 脚本								application/x-csh
.eot		MS嵌入式OpenType字体							application/vnd.ms-fontobject
.epub		电子出版物(EPUB)								application/epub+zip
.htm		超文本标记语言 (HTML)						text/html
.ico		Icon 格式									image/vnd.microsoft.icon
.ics		iCalendar 格式								text/calendar
.jar		Java Archive (JAR)							application/java-archive
.jsonld		JSON-LD 格式								application/ld+json
.mid		乐器数字接口(MIDI)							audio/midi audio/x-midi
.midi		乐器数字接口(MIDI)							audio/midi audio/x-midi
.mjs		JavaScript 模块								text/javascript
.mpeg		MPEG 视频									video/mpeg
.mpkg		苹果安装程序包								application/vnd.apple.installer+xml
.odp		OpenDocument演示文档						    application/vnd.oasis.opendocument.presentation
.ods		OpenDocument 电子表格文件					application/vnd.oasis.opendocument.spreadsheet
.odt		OpenDocument 文本文档						application/vnd.oasis.opendocument.text
.oga		OGG 音频									audio/ogg
.ogv		OGG 视频									video/ogg
.ogx		OGG											application/ogg
.otf		OpenType 字体								font/otf
.rar		RAR 存档									application/x-rar-compressed
.rtf		富文本格式 (RTF)								application/rtf
.sh			Bourne shell 脚本							application/x-sh
.svg		可缩放矢量图形 (SVG)							image/svg+xml
.swf		小型web格式 (SWF) or Adobe Flash document	application/x-shockwave-flash
.tar		Tape 归档(TAR)								application/x-tar
.tif		标记图像文件格式 (TIFF)						image/tiff
.tiff		Tagged Image File Format (TIFF)				image/tiff
.ttf		TrueType 字体								font/ttf
.txt		Text										text/plain
.vsd		Microsoft Visio								application/vnd.visio
.wav		波形音频格式									audio/wav
.weba		WEBM 音频									audio/webm
.webm		WEBM 视频									video/webm
.webp		WEBP 图片									image/webp
.woff		网页开放字体格式 (WOFF)						font/woff
.woff2		网页开放字体格式 (WOFF)						font/woff2
.xhtml		XHTML										application/xhtml+xml
.xml		XML											application/xml(普通用户不可读)、text/xml(普通用户可读)
.xul		XUL											application/vnd.mozilla.xul+xml
.zip		ZIP											application/zip
.3gp		3GPP audio/video 容器						video/3gpp、audio/3gpp(不含视频)
.3g2		3GPP2 audio/video 容器						video/3gpp2、audio/3gpp2(不含视频)
.7z			7-zip										application/x-7z-compressed

你可能感兴趣的:(javascript,blob,base64)