Uploading Image to GCS on mobile


I am working on a mobile app which has a form to submit. The form takes an image and uploads it to GCS in binary. When I test the form submission on the app in my browser, everything works as expected but when I try to do it on mobile through the Retool app, I get the following error.

I am not sure how to resolve this error.

Hey @raied, are you still running into issues?

There's a thread here that may help with uploading image files. Have you already been using utils.getDataByObjectURL?

I have looked into the thread there, and while ive been able to get the base64 string and upload it to gcp as file.jpg the image is still just a string. is there a way to make it so that the file on gcp gets saved as a jpg?