19

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

2

3 Answers 3

10

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.

Sign up to request clarification or add additional context in comments.

2 Comments

what about Firefox or Safari?
Give it a shot and let me know. I think it's related to the file API: caniuse.com/#feat=fileapi
0

Google Docs supports drag-n-drop in everything but MSIE, however it still does not support copy & paste of images:

https://drive.googleblog.com/2010/10/drag-and-drop-images-in-documents.html

Comments

-1

I don't think it's possible using plain html/javascript, but you can do it using a java applet. Ex: Radinks upload control

2 Comments

@DanielXMoore "it's now possible" and "it's not possible with chrome + chromeframe" is two completely different things altogether..
Why, Chromeframe works in IE, and Chrome is a pretty popular browser, and FF is getting there. So is it more accurate to say it works in 60% of browsers and increasing?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.