以ASP为例,假设图片的格式为JPG,文件名为base64pic.asp。 Response.ContentType = "image/gif" Response.BinaryWrite base64Decoder("pic") 以上代码用于输出图片内容。然后在网页中引用: