
Announcements
Hello Everyone!
I have created a Flow, which converts HTML file to PDF File and then display it on OneDrive on a New Screen Tab.
but I had used the Get File Content for the Logo and I had upload that file on my Personal OneDrive Folder, the Image was showing at my end and flow was running good, but when the other users try to run the app and generate the report for the PDF the flow prompts an error failed to retrieve the file, as the file is located on my drive.
How to solve this Please Help!!!
Hey @MH3
The easiest way to resolve the issue is to embed the image as a dataUri in your HTML... there are a number of websites where you can upload your image and it will return the dataUri: https://ezgif.com/image-to-datauri
Once you have your dataUri simply update the img tag in your HTML:
From: <img src="https://www.encodian.com/assets/img/Encodian_Logo.png"/>
To: <img src="ata:image/png;base64,iVBORw0KGgoAAA..."/>
Obviously the dataUri string will be quite a bit bigger 🙂
If you want to dynamically generate the dataUri in your Flow take a look at the second part of this article: https://blog.encodian.com/2020/02/create-qr-codes-with-power-automate-and-encodian/
Cheers J