Reputation: 25
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
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:
After running the logic app, it will get $content
in base64.
By the way:
If you do it with javascript inline, you can just create an integration account in free tier.
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.
Upvotes: 1