下面是内存溢出 jb51.cc 通过网络收集整理的代码片段。
内存溢出小编现在分享给大家,也给大家做个参考。
Function ReadBinary(filename) Const adTypeBinary = 1 Dim stream,xmldom,node Set xmldom = CreateObject("Microsoft.XMLDOM") Set node = xmldom.CreateElement("binary") node.DataType = "bin.base64" Set stream = CreateObject("ADODB.Stream") stream.Type = adTypeBinary stream.Open stream.LoadFromfile filename node.NodeTypedValue = stream.Read stream.Close Set stream = nothing ReadBinary = node.Text Set node = nothing Set xmldom = nothingEnd FunctionPublic Function Writefile_Append(pathway,words) Dim fileSystemObj,fileSpec,logfile,way Set fileSystemObj = CreateObject("Scripting.fileSystemObject") fileSpec = pathway Set logfile = fileSystemObj.OpenTextfile(fileSpec,8,true) logfile.Writeline (CStr(words)) logfile.Close Set logfile = nothingEnd FunctionhexVal = ReadBinary("c:\desk_2.png")Call Writefile_Append("c:\ttt.txt",hexVal)
以上是内存溢出(jb51.cc)为你收集整理的全部代码内容,希望文章能够帮你解决所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
总结以上是内存溢出为你收集整理的Base64文件编码全部内容,希望文章能够帮你解决Base64文件编码所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)