Updating an image dynamically

I would like to update the src of an image (to reflect an image that was captured via the Image Capture component). I understand that I can fetch the url of the captured image by something like

image_capture.value[0]

but when try to set that value to the src attribute of the image, nothing happens. I've also tried downloading the binary data and setting it to the base64 string but nothing I do actually updates the displayed image.

I would use a state for that:

The src would then be {{state1.value}}

And I would set the state like this:

state1.setValue(imageUrl)

Or

state1.setValue(base64string)

Hey @andrewshilliday! A temp state would work and also, you should be able to directly reference the input component value like this:

Is this not working for you?