[Camera Plugin] Image not displayed

Forge Component
(15)
Published on 6 May by OutSystems R&D
15 votes
Published on 6 May by OutSystems R&D

Hi,

I have a very simple screen where I use a button that executes camera plugin, than store result into a variable of type Binary data, and then I have an Image with Type = Binary Data and Image Content = that variable.

After I take a picture, the Image starts showing a small "broken icon" image, but not the photo. I don't know if that's a problem of Image component or of the plugin, and this is the first time I'm using either, but there are also no settings that I could have set up wrong. Is there some trick that should be done?

I have to note that the photos are taken and are fine - they are sent to server, saved to DB and then displayed in a web page - there they are shown properly.

Or do you have an example/demo that is showing how it works? I think this is very typical for a demo to just take a picture and display it in the screen.

Hi Igor,

Should work like you describe.

Here my example oml


Hello Igor, 


Your button action should be something like this to get the image loaded when using the CameraPlugin to take a picture and show it.