Languages
[Edit]
EN

JavaScript - read image from clipboard as Data URLs encoded with Base64

4 points
Created by:
FryerTuck
649

In this short article we will see how in JavaScript read image from clipboard as Data URLs encoded with Base64.

Very important thing is: this feature is available in the newest browsers but it can be treated as additional feature that helps user working ergonomics.

How to use it?:

  1. copy some bitmap to clipboard
    (it is good to open some image editor and copy selected image area, use some snipping tool or just press Print Screen key),
  2. run below example,
  3. press Paste image bitmap from clipboard button.

 

Practical example:

 

Copy this graphic to system clipboard.

Used image with clip property.
Example image

See also

Edit
  1. JavaScript - paste any data form system clipboard (e.g. image, text, etc.) 

Alternative titles

  1. JavaScript - read image / picture from clipboard as Data URLs encoded with Base64
1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join