How can i save base64 to image file on cordova / ionic or upload to server?

3k Views Asked by At

I write cordova application using ionic framework. My goal is to receive image from the gallery and send it to the server as base64 string. But when I do so server says that request is too large and denies it. I’m kinda stuck at this moment.

What is correct way to send images to a server?

Is there any way to send it as multipart?

1

There are 1 best solutions below

0
On BEST ANSWER

https://github.com/wymsee/cordova-imageResizer - helped me to save base64 image.