search

Home  >  Q&A  >  body text

Send data to server as file

I received an image from the clipboard as a bitmap and need to send it to the server as a file. How can I achieve this without saving it as a file on the user's computer?

P粉993712159P粉993712159281 days ago383

reply all(1)I'll reply

  • P粉052724364

    P粉0527243642024-03-21 00:47:43

    Since you did not mention the technology stack, I will answer this question from a general theoretical perspective.

    You should convert the clipboard data to a byte stream and send it to the server via an HTTP multipart/form data request.

    reply
    0
  • Cancelreply