Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Paste an image into a web page

Is it in any way possible, using javascript (jquery), html (5) to get a pasted image.

e.a a user click the printscreen button, opens a web page, clicks CTRL+V and the image is uploaded to the server (without the need to save to a local pc)

is it achievable through flash, java, any other technology?

ty

like image 380
Alexey Avatar asked Dec 16 '10 09:12

Alexey


1 Answers

Yes, this is possible in pure JavaScript, assuming either Google Chrome or Chrome Frame.

View a live demo of a jQuery plugin that cleanly wraps the HTML Clipboard API. This works by getting binary image data from the Ctrl+V paste event into JavaScript.

like image 51
Daniel X Moore Avatar answered Oct 11 '22 12:10

Daniel X Moore