string怎样转byte()
jmail.Attachment.BinaryData
dim stream_o
set stream_o=Server.CreateObject("adodb.stream")
stream_o.Type = 2 '1:adTypeBinary ; 2:adTypeText
stream_o.Open
'stream_o.Write s_data
stream_o.WriteText Attachment.BinaryData
stream_o.SaveToFile file_name , 2
stream_o.Close
set stream_o=nothing
保存后的jpg图片能用acdc打开,但不用ie和photoshop打开,说不是jpg标志,为什么那?假如用stream_o.Write 怎么实现那?就是asp中,string怎样转byte()
谢谢!