I have tried a million different online tutorials on how to download a Base64 image from an iOS app to my rails app. It seems that no matter how I format the request, it simply will not be accepted.
Does anyone know how to load a Base64 image into a clip?
I tried to send the parameter as JSON
{ "thumbnail_image": "base64_data..." }
I also tried adding the data url
{ "thumbnail_image": "data:image/jpeg;base64,alkwdjlaks..." }
I tried sending a JSON object with and without a url
{ "thumbnail_image": { "filename": "thumbnail.jpg", "file_data": "base64_data...", "content_type": "image/jpeg" } }
I sequentially get these Paperclip::NoHandlerError, and then it uploads a giant frame of data to my log.
source
share