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&translate-esc=false&unit=Fit&dpi=96&imagetype=Gif&rotation=0&color=%23000000&bgcolor=%23ffffff&codepage=Default&qunit=Mm&quiet=0&eclevel=L"
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. '.