cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Post Prodigy
Post Prodigy

Image Not Showing in PDF

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!!! 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User II
Super User II

Re: Image Not Showing in PDF

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

 

View solution in original post

1 REPLY 1
Highlighted
Super User II
Super User II

Re: Image Not Showing in PDF

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

 

View solution in original post

Helpful resources

Announcements
secondImage

August 2020 CYST Winners!

Check out the winners of the recent 'Can You Solve These?' community challenge!

thirdImage

Experience what's new for Power Automate

Join us for an in-depth look at the new Power Automate features and capabilities at the free Microsoft Business Applications Launch Event.

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (4,694)