Jump to content

How to upload a picture cropped from another tool int the browser side to the server-side?


55143681

Recommended Posts

Dear:

I have an unigui project.

In the client side(the google browser),I have another chat tool,

the chat tool can cut some screen area as a picture to the clipboard,

and I want to upload the picture in the clipboard to the unigui server side,

that is say:How to upload the browser-side clipboard picture to the server side?

How to do that?

thank you.

 

Link to comment
Share on other sites

6 hours ago, 55143681 said:

How to upload the browser-side clipboard picture to the server side

Hello, If You googling for this: javascript read bitmap clipboard will find many examples.

https://ourcodeworld.com/articles/read/491/how-to-retrieve-images-from-the-clipboard-with-javascript-in-the-browser

this read clipboard data (with uniSession.addJS is simple)

https://developer.mozilla.org/en-US/docs/Web/API/Clipboard/read

You will get clipboard content from browser and try to show it in uniImage or uniCanvas

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...