Upload Camera Picture to Database

Good day,

I use the Camera_getPicture plugin to take and show a picture in an Image component, It works great, now I want to upload the picture to the files Database.
I setup the db__files_create_service, I map the token, the databaseID, I set the Content-Type to 'image/jpeg', I map the data to the $scope.im where I display the picture in the UI.

When I invoke the function with a button the Database create the file with all the properties but when I download the image file doesn't work, How I should map the Data?.

Thanks for the support
2 people have
this question