none
VBA varbinary RRS feed

  • Question

  • Hello

    i have generated a msword document on vba after a button client event now

    is there a way that i can convert the file (msword) into SQL Varbinary type ?


    Tuesday, March 13, 2012 2:58 PM

All replies

  • 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


    If the answer was helpful vote

    • Proposed as answer by Jean LLopes Tuesday, January 5, 2016 1:07 AM
    Tuesday, January 5, 2016 1:07 AM