How To Select BASE64 Alphabet ? RRS feed

  • Question

  • hi

    my testing indicates that this function outputs MIME format:

    Public Function EncodeBase64_byte(ByRef arrData() As Byte) As String
    ' accepts byte
              Dim objXML As MSXML2.DOMDocument60
              Dim objNode As MSXML2.IXMLDOMElement

              Set objXML = New MSXML2.DOMDocument60

              ' byte array to base64
              Set objNode = objXML.createElement("b64")
              objNode.DataType = "bin.base64"
              objNode.nodeTypedValue = arrData
              EncodeBase64_byte = objNode.text

              Set objNode = Nothing
              Set objXML = Nothing
    End Function

    My understanding is that BASE64 supports 3 alphabets: MIME, BASIC, and URL.

    How can i adjust this code to return BASIC format, instead of MIME?


    Friday, April 22, 2016 1:06 AM

All replies

  • Hi Johny,

    As far as I know, the XDR only support the "bin.base64" data type. You can refer to the link below about more detail about XDR Schema Data Types:

    Since this forum is for developers discussing developing issues involve Excel like Excel automation and customization.

    And the issue more relative the VBA developing, I would like to VBA forum.

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. 

    Thanks for your understanding.

    Regards & Fei

    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, April 22, 2016 2:17 AM