Hi all! I'm from Brazil and I need a lot of help
I'm trying to convert an image I'm using in my application to the image control that comes straight from a URL. However when trying to extract the binary data from it and send it to a flow that composes the binary data and saves it in jpg in my library I noticed the error that the JSON () function is not able to convert. I also tried to generate HTML with this link but without success.
Propery Image in my Image1
"https://barcode.tec-it.com/barcode.ashx?data="&TextInput1.Text&"&code=QRCode&multiplebarcodes=false&..."
where TextInput1.Text is an entry for the user to generate a website's QR Code.
After that I store the QR codes inside a collection to call my flow and send it to the library in the SPO
Collect(
col_Imagens;
{
Name: TextInput1.Text,
Value: Substitute(
JSON(
Image1.Image,
JSONFormat.IncludeBinaryData
),
Char(34),
"")})
and finally I call the flow on the send button
'CriarArquivo-Item'.Run(JSON(col_Imagens,JSONFormat.IncludeBinaryData), 1)
attached I put the images of both the power apps and the error of my flow
Error message: It was not possible to process the model's language expressions in the action's' Compose 'entries in line' 1 'and in the' 12454 'column:' The model language function 'dataUriToBinary' expects its parameter to be formatted as a valid data URI. The value provided 'https://barcode.tec-it.com/barcode.ashx?data=Test1&code=QRCode&multiplebarcodes=false&translate-esc=false&unit=Fit&dpi=96&imagetype=Gif&rotation=0&color=%23000000&bgcolor=%23quffiet&mcodepage 0 & eclevel = L 'was not formatted correctly. Check usage details at https://aka.ms/logicexpressions#dataUriToBinary. '.
I also tried to convert to html but I couldn't
<img src='https://barcode.tec-it.com/barcode.ashx?data="&TextInput1.Text&"&code=QRCode&multiplebarcodes=false&...'>
In summary I need to store this image generated by the url in my library.
Ty!!
Solved! Go to Solution.
Hi @Danilo-ES-BR :
Do you want to save a picture URL as a picture format file and store this file in the SharePoint library?
If so, this is easy to implement, you don’t even need to convert it to JSON. The ‘Up date file from URL’ action in Flow can directly convert URLs to files. I've made a test for your reference:
1\The pic
2\My flow(DaniloFlow)
The formula
DaniloFlow.Run(Image1.Image)
The Rusult:
Best Regards,
Bof
Hi @Danilo-ES-BR :
Do you want to save a picture URL as a picture format file and store this file in the SharePoint library?
If so, this is easy to implement, you don’t even need to convert it to JSON. The ‘Up date file from URL’ action in Flow can directly convert URLs to files. I've made a test for your reference:
1\The pic
2\My flow(DaniloFlow)
The formula
DaniloFlow.Run(Image1.Image)
The Rusult:
Best Regards,
Bof
Ty!!! 😄
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
245 | |
122 | |
84 | |
83 | |
67 |