views:

177

answers:

1

I found this question, but the question is about how to get an image from the clip board into a wyziwyg editor!

My question is "How can I paste an image from the clipboard into a field (what field is not that big issue as long as it works)", and then sent to the server.

Jira has this functionality, so it should be possible!

Any ideas on how to do this?

Just to explain the complete workflow; I would like to have a plave to multi upload images, where the paste from clipboard also is an option. The upload will be some ajax of some sort, bt is not important in this context!

Thanks

+4  A: 

UPDATED

As Alistar say you can't do this with only javascript and html, but wait, is not so simple, depending on what you need you can try different way!

..clipboard method only works to put strings on the clipboard. For other types of data, such as URLs or images, you will need to use a more complex method...

you need at least flex

or java

USEFUL STUFF

for java:

  1. http://www.java2s.com/Code/Java/2D-Graphics-GUI/SendingImageObjectsthroughtheClipboard.htm
  2. http://lassebunk.dk/2009/08/04/clipboard-java-applet/
  3. http://www.devdaily.com/java/java-clipboard-image-copy-paste

for flex:

  1. http://www.flexets.com/show-image-from-clipboard
  2. http://upog.wordpress.com/2010/02/14/copy-and-paste-in-flex-web-application/

GOING AHEAD

Clipboard ActiveX for Image Copy/Paste into Web Forms

aSeptik
Thanks aSeptik. Great links you posted!
dr. squid
I do see that the Flex / Flash / ActionScript way of dealing with this only support using Air...
dr. squid
i have updated a little for sake!
aSeptik