Base64 binary to file

Hi all,

How to convert from base 64 binary to PDF file…

Hi @kishoretg,
This is the real code.
Dim bytes As Byte() = Convert.FromBase64String(base64BinaryStr)
File.WriteAllBytes(“FolderPath\pdfFileName.pdf”, bytes)

Explanation…

  1. Using the Assign activity Convert.FromBase64String(base64BinaryStr) to store the byte array variable(arrByte).
  2. Use the method invoke to invoke the files’s writeAllbyes.

Invoke method :slight_smile:

Regards
Balamurugan.S

3 Likes

Hi @balupad14

In invoke methods for files write all bytes , what is the target type, target object, and method name…
Please give in detail…
Thanks

hi @kishoretg

Have you done this conversion, if yes please explain how to do i have a scenario like this and am not able to convert

Thanks in Advance
Venkat

Hi @venkatpspk

I done this conversion, its working fine for me, use invoke code activity and check…

1 Like

Very good. :clap::clap::clap::clap::clap::clap::clap:

Regards
Balamurugan.S

1 Like