Directly save image to clipboard on client side using javascript

How to directly save clipboard image on client side using javascript?

Any sample source code?

0
source share
3 answers

In a typical browser environment, JavaScript cannot:

  • buffer access
  • file system access

So what you want under normal conditions is impossible.

If you have an unusual environment (for example, a WSH environment or Internet Explorer with low security settings and access to ActiveX), then this may be feasible, but how you do it will depend on the context in which you use the code in.

+2
source

.

0

Easy in browsers that implement the clipboard API . Check out this demo with Google Chrome: http://strd6.com/2011/09/html5-javascript-pasting-image-data-in-chrome/

0
source

Source: https://habr.com/ru/post/1715273/


All Articles