Convert base64 to pdf?

What product/components do you use and which version/fix level are you on?

       Webmethod io integration-10.15

What are you trying to achieve? Please describe it in detail.

Actually i have base64 data and i want to convert base64 to pdf, is it possibl to convert to pdf?.

Base64 is a binary-to-text encoding scheme. If the original binary bits were a PDF, then decoding the Base64 string will provide the raw bytes of the PDF.

1 Like

How can i generate pdf(image) from base64?.

Search the wM docs for base64. You may find a component that will decode the base64 into the raw bytes.

1 Like

Use pub.string:base64Decode → pub.file:bytesToFile this might do.

1 Like

I was attempting to “teach a person to fish” rather than “give a person a fish” :slight_smile:

4 Likes

Love this approach.

1 Like

+1 for this post, In this context, essential to keep in mind the difference between a text format such as pdf vs a text encoding scheme such as Base64.

-NP

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.