On the mobile beta builder. I am taking a picture with the open camera function in work flow. I need the base64 string of this picture for an api I am running.
Bubble has the option of choosing encoded base64 however nothing happens. I know the api works as I have used it with another element.
In my screen shot I have taken a picture of the workflow and just put it I not the state of an image which when I choose url the image appears in the test however when I choose Base64 nothing happens
Any advice or help would be grateful
Image with url to set state works
Image with base 64 to set state doesn’t
@mitch3 This happens because the mobile beta camera element doesn’t automatically convert the photo to Base64 in a way that Bubble recognizes for states. When you set the image to Base64, Bubble sometimes doesn’t trigger the display because it’s expecting a proper “data:image/…” string.
A reliable approach is to first save the image to Bubble’s database or file manager, then use the “Get data as Base64” action (via a plugin like “Base64 Utilities” or “Toolbox”) to convert it. That string will work with your API.
Directly setting the state from the camera to Base64 usually fails; saving and then converting is the consistent method.