Base64 binary to file

Hi all,

How to convert from base 64 binary to PDF file…

1 Like

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

4 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

Hi, how should be filled invoke method ? I don’t understand what should be
image

Hello gents,
In case anyone will need it, i have here an example.
_Test_PDF_Decoding.xaml (5.4 KB)

3 Likes