0

I have a Request - Form Data from Network -> Payload which contains a file (binary) element.

Form Data 
file: (binary)
id: 45451683 

I don't know how to send the request to the backend to upload file.

For example I have "file://var/mobile/..." and I want to convert this to a binary type so I can send the right request to the backend.

How do I do this?

4
  • Does this answer your question? stackoverflow.com/questions/29489502/… Commented Oct 3, 2022 at 16:48
  • @AlexWayne no it doesn't, but thanks Commented Oct 3, 2022 at 17:24
  • Why not? That first answer shows how to attach a file with only the URI to a request. What about that scenario is different is different than what you are doing? Or if you tried those solution that what about them didn't work for you? Commented Oct 3, 2022 at 17:31
  • @AlexWayne I tried it and the conversion to binary type si not working. The file is still being send as uri and not as binary. The request is not successful. Commented Oct 4, 2022 at 5:51

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.