I want to convert image widget to binary data. Do you have some suggestion how can I realize this? Thank you
Could you share what plugin you use to generate QRCode ?
Usually it already have option to save it as binary data.
Sorry Joseph, could you elaborate your question ?
Image in image widget is already binary data.
If you need to convert it to base64, you can use BinaryData from dependency
Hi,
I render the QRCode as image in web and I want to download it as image file so I want to convert it to binary data so I can download it. By the way the image is not from the database , QR Code is generated in front end side and render as image.
same question I have....please any one know the solution???
thanks and regards,
pooja warke
Hello,
I have used QR Code Reactive forge component.do you have solution?
Pooja Warke.
For this plugin, it's easier because the plugin itself already return base64 of the image.
What you need to do is :1. enable jQuery script from OutsystemsUI dependencies
2. Create an action for getting the data
3. put this javascript on the action :
var imgx = $('img[alt="Scan me!"').attr('src');
$parameters.base64 = imgx;
Javascript explaination :The plugin will return an image with alt="Scan me!", so we using jQuery selector to get the img component (line 1 of the javascript), then put the value as output parameter (line 2)