I’m using the image upload component for mobile for the first time. When I upload an image in the editor it returns a blob. But when I upload an image using the app on an iPhone I get a different result: file://
I want to save the image in the retool database and also use the link directly in the app as a preview. I thought this would be simple. Anyone know which steps I’m missing? The blob can be used as the source for an image component. I can also save it in the database. But when I try to do this with iOS I got no clue what to do with the file:// uri.
Hi Bob trying to do something similar, are yuu succesfully storing the image as base 64 in the retool database? , would you mind telling me how you did this please.
Hi, welcome to community.
You should use File button or File input to upload the file.
and there two component will parse files to base64, you read the component base64 value, and save it to retool database
here is docs
thanks for the reply, sorry i should have been clearer , this is on the retool mobile
we are succesfully using capture image and it writes back to the retool db as a blob file , how do i then get to view this in the mobile app and the web app as an image.
You'll need to convert the image data to a base64 string using the getDataByObjectURL API when you write it to your DB. Then when you read it back you can just pass that data directly to your Image component.