Irwan
Irwan

Reputation: 25

How to convert pdf to base64 in Azure

I want to convert pdf file to base64 so I can view it on my power BI. I have tried javascript inline in Logic app but it need integration account that could increase my bill. Is there any ideas to convert pdf to base64 in azure?

Upvotes: 1

Views: 1384

Answers (1)

Hury Shen
Hury Shen

Reputation: 15734

I'm not sure where your pdf stored. If you didn't store it in azure blob storage, I think you can store it in blob storage. Then we can get the pdf from blob storage in logic app like below: enter image description here

After running the logic app, it will get $content in base64. enter image description here

By the way:

If you do it with javascript inline, you can just create an integration account in free tier. enter image description here

After add the integration account to your logic app, you need to wait a few minutes. If you run the logic app immediately, it may show the error message The integration account 'xxxxxxxxx' is still being provisioned. Please try again later. enter image description here

Upvotes: 1

Related Questions