Hi, i want upload image to Django Rest API. I created the “select from gallery” and “take a picture” options. But how can I upload it? Which method is better? Thanks.
filetransfer plugin is available for use
1 Like
You can use Filetransfer plugin or convert the image to base64 string and send it to the server in a normal request and convert it to image at the backend.
As for which method is better, It depends on the project and requirements. I use base64, I find it more flexible and faster.
1 Like