28,390
社区成员
发帖
与我相关
我的任务
分享
'函数的参数为path,文件的===物理路径===
function getBinData(path)
dim bindata,objstream,i,iHex
set objstream=server.createobject("adodb.stream")
objstream.Type=1'1为2进制,2为文本
objstream.mode=3
objstream.open
objstream.Position=0
objstream.loadfromfile path
bindata=objstream.read(objstream.Size)
getBinData=bindata'=======这样不就行了吗,就是你需要的2进制数据了
end function