VBA varbinary [英] VBA varbinary
本文介绍了VBA varbinary的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好
我已经在按钮客户端事件之后在vba上生成了一个msword文档
i have generated a msword document on vba after a button client event now
我有办法吗?将文件(msword) 转换为SQL Varbinary类型?
is there a way that i can convert the file (msword) into SQL Varbinary type ?
推荐答案
请尝试以下代码:
Please try the follow code:
Public Shared Function StrToByteArray(str As String) As Byte()
Dim encoding As New System.Text.ASCIIEncoding()
Return encoding.GetBytes(str)
End Function 'StrToByteArray
这篇关于VBA varbinary的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文