logo

哈达波斯网|专注网站

ASP

网站首页 »  ASP

base64转图片

栏目:ASP  时间:2024-12-07 16:11:51  作者:管理员  来源:本站原创
<%
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 © 2024 哈达波斯网|专注网站 All Rights Reserved.
哈达波斯网|专注网站 版权所有
地址:吉林省吉林市昌邑区 联系QQ:383612004 联系人:董先生
未经本站授权,禁止复制或建立镜像,内容仅用于学习参考!
ICP备案号:吉ICP备15000891号 | 

吉公网安备 22020202000301号