Hi,
I need to convert base64 format into pdf.
Can anyone kindly help.
Regards,
Deepa
Hi,
I need to convert base64 format into pdf.
Can anyone kindly help.
Regards,
Deepa
Use invoke code activity
and paste the below in the invoke code activity
Dim bytes As Byte() = Convert.FromBase64String(Your_base64BinaryStr)
File.WriteAllBytes(“Your_FolderPath\Your_pdfFileName.pdf”, bytes)
Hope it solves your issue
Thanks
Robin
Hi @Robinnavinraj_S , thanks for the reply.
Just one more query.
While I was trying your code:
Convert.FromBase64String(Your_base64BinaryStr)
Under (Your_base64BinaryStr) I tried to enter the variable which consist the base64string content.
For example:
Convert.FromBase64String(strVar)
where strVar is variable which consist the base64string content
But this invoke code activity throwing error like this cariable is not declared.
But this variable is declared to the topmost node still this above error is shown.
Do we have to declare this variable under invoke code activity itself? Or how to declare this variable under this invoke code activity?
Pls help.
Thank you in advance.
Regards,
Deepa
We can’t able to directly use variables in invoke code activity instead we have to use argument
create a string argument in by clicking edit argument in invoke code activity
and pass your base64 string variable in value tab
now use the created argument in code
Hope it solves your issue
Thanks
Robin
@Robinnavinraj_S Thank you so much for the help.
It resolved my issue
your welcome @Deepa_Madkar
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.