N
N
Nikita Andreevich2020-01-26 02:09:46
React Native
Nikita Andreevich, 2020-01-26 02:09:46

Convert to base64 and send to server?

Good day. We get a photo -> convert it to base64 -> send it to the server. Please help me implement this functionality. I work through react native expo. I know that expo imagepicker has a built-in method that converts to base64, I use it. But I'm not sure that it works correctly (can you advise an alternative. Below is the code for converting the image and sending it to the server (this code does not work) help me figure out what the problem is?
5e2ccaac6aee1835959359.png
5e2ccab44523e452588779.png

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question