logo

哈达波斯网|专注网站

ASP

base64转图片

ASP  2020/9/17 10:51:45  管理员  
<%
Function base64_img(byval s,byval f)
        If InStr(s,"base64,") > 0 Then
          s = Mid(s,InStr(s,"base64,")+7)
        End If
        Set b64 = Server.CreateObject("Msxml2.DOMDocument").createElement("a")
        Set Stream = Server.CreateObject("ADODB.Stream")
        b64.dataType = "bin.base64"
        b64.Text = s
        With Stream
			.Type     = 1
			.Open                    
			.Write b64.nodeTypedValue
			.SaveToFile Server.MapPath(f),2
			.Close 
        End With
        Set Stream = Nothing  
        Set b64 = Nothing 
End Function
%>


网站首页  | 最新公告  | 漏洞修补  | 网站模板  | 知识文档  | 与我联系
Copyright © 2015 jlasp.com All Rights Reserved.
哈达波斯网|专注网站 版权所有
地址:吉林省吉林市昌邑区 联系QQ:383612004 联系人:董先生
未经本站授权,禁止复制或建立镜像,内容仅用于学习参考!
ICP备案号:吉ICP备15000891号-1 | 

吉公网安备 22020202000301号