656
Views
6
Comments
Solved
How to convert image widget to Binary data
Question

I want to convert image widget to binary data. Do you have some suggestion how can I realize this? Thank you

2021-01-04 08-13-48
Toto
 
MVP
Solution

Could you share what plugin you use to generate QRCode ?

Usually it already have option to save it as binary data.

2021-01-04 08-13-48
Toto
 
MVP

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

2019-11-21 04-28-05
Joseph Omas

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.

2021-01-04 08-13-48
Toto
 
MVP
Solution

Could you share what plugin you use to generate QRCode ?

Usually it already have option to save it as binary data.

UserImage.jpg
Pooja Warke

same question I have....please any one know the solution??? 


thanks and regards,

pooja warke

UserImage.jpg
Pooja Warke

Hello,

I have used QR Code Reactive forge component.do you have solution? 


thanks and regards,

Pooja Warke.

2021-01-04 08-13-48
Toto
 
MVP

Hi,


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)

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.