Encoding an attachment to Base64 with VBA - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Encoding an attachment to Base64 with VBA

Last post 10-01-2019 07:41 AM by Hilary Stoupa. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 09-26-2019 01:55 PM

    Encoding an attachment to Base64 with VBA

    I've been able to encode the files themselves, but the first portion of the attachment in Base64 appears to be specific to InfoPath. This is even documented in the URL below and I found some VB code, but I don't have the background to understand it. I have an example below. I just need to figure out what to encode for the "unknown" section. If I can figure out what to encode. I Used the decoder at https://www.browserling.com/tools/base64-decode to decode the "unknown" section below and it decodes to "U ". If I can figure out what this is supposed to be, I think I'll have everything I need. [standard] [unknown] [standard] [filename] [standard] x0lGQRQAAAABAAAAAAAA AFUBAAAJ AAAA dABlAHMAdAAuAHAAbgBn AAAA https://blogs.msdn.microsoft.com/infopath/2004/03/18/infopath-file-attachment-control/
    Filed under: , ,
  • 09-27-2019 07:25 AM In reply to

    Re: Encoding an attachment to Base64 with VBA

  • 09-30-2019 07:28 PM In reply to

    Re: Encoding an attachment to Base64 with VBA

    Unfortunately no. This is where not having a background in binary coding is a problem. I'd have to really understand that code in order to convert it to VBA, and I don't.
  • 10-01-2019 07:41 AM In reply to

    Re: Encoding an attachment to Base64 with VBA

    Are you using Visual Basic or C#? The sample is in C# - and if you don't have a language preference, you'll have an easier time finding C# samples....
    Hilary Stoupa

Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.