Hi,
I want to generate Matrix code using Following API :
http://datamatrix.kaywa.com/img.php?s=8&d=458
Then send by mail to user.
I can display the image on power App:
Set(ImgQR;"http://datamatrix.kaywa.com/img.php?s=8&d=458");;
Then I create a new item 'image' with value 'ImgQR' and i see the images I want.
The problem come when I want to send the image by mail
ClearCollect(ImageQR;{Name: "QRcode.jpg"; ContentBytes: ImgQR; '@odata.type':""});;
Office365Outlook.SendEmail(
User().Email;
"mailpower";
"ok";
{
Attachments: ImageQR;
IsHtml: true
}
);;
I got an error message, Something like "Something went wrong please check your internet connexion"
Could it be because the API is http and not https?
The thing is , I can send image well when i'm using another APi (https://chart.googleapis.com/chart?cht=qr&chl=458&chs=100x100 but this one generate QR code not data matrix).
I think my problem is coming from API. To solve it, I think I should be able to save image as a real image or byte content then send it by mail… but i dont know how to do this

Report
All responses (
Answers (