cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Xepcon
New Member

Powerapps Barcode,Qr Code

Hello guys !

 

I am wondering how can i convert in powerapps URL images to binary images, because i want to generate a PDF through html in html my image is shown greate through URL, but in pdf its not. I need html because i want to create a Powerapps delivery note.  

 

Thanks for the help


Best regards : Xepcon

1 ACCEPTED SOLUTION

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Xepcon :

I've made a test for your reference:

1\Create a flow:

vbofengmsft_0-1638430008695.png

vbofengmsft_1-1638430032680.png

2\insert the flow into the canvas app

vbofengmsft_2-1638430094533.png

3\Add a button and set it's OnSelect property to:

 

'PowerAppV2->UploadfilefromURL,Getfilecontent'.Run("https://chart.googleapis.com/chart?chs=300x300&cht=qr&chl=222")

 

The Result:

vbofengmsft_3-1638430943237.png

 

Best Regards,

Bof

 

 

View solution in original post

11 REPLIES 11
Nogueira1306
Community Champion
Community Champion

https://www.youtube.com/watch?v=EACk5jlQ_jU&t=795s

 

Where Reza uses JSON I think will work for you. But not sure. Try checking that.

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

My website!

Yes i have done this, the proble is that in html the image source is 

Xepcon_0-1638276090935.png

and in the PDF its not showing, the main idea is that the picture inside powerapps its a URL image, and in PDF its shown as : 

Xepcon_1-1638276186832.png

 

Xepcon_2-1638276337773.png

This in a PDF.

Nogueira1306
Community Champion
Community Champion

You should save that image in a SP site, for example and then go get it.. That is because the "pdf" cant reach the img..

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

Last Post on Community

My website!

Yeah i know but we are using SQL Server, and i have issues with converting URL Images to binary to save to SQL server. 

Nogueira1306
Community Champion
Community Champion

You can try to save as x64

Xepcon
New Member

And how ? 

Still the main problem is that i have an image which source is a 

If(gvQRdata<>"";"https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl="&gvQRdata;SampleImage) and i cannot convert this to a x64 

i already done the JSON stuff : 

Set(imageQr; JSON(Image2.Image; IncludeBinaryData));;
Set(QrContent; Mid(imageQr;2;Len(imageQr)-2));;

Image2.Image source is : If(gvQRdata<>"";"https://chart.googleapis.com/chart?cht=qr&chs=300x300&chl="&gvQRdata;SampleImage)

Helpful resources

Announcements
User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,867)