string怎样转byte()

chaozhou chaozhou 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
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()


谢谢!
...全文
评论 6
收藏 已收藏
分享
返回顶部
chaozhou
ASP 28,401 成员 356,940 内容