Paste an image from the clipboard into an application? I assume you don't
just want to display it, but actually capture it, in which case the browser
only offers you one option: <input type="file">. And those inputs cannot be
pre-populated or filled via scripting.
--
Dave Anderson
Unsolicited commercial email will be read at a cost of $500 per message. Use
of this email address implies consent to these terms.
If what you are asking for were possible, then malicious web sites could
copy virtually any content from the clipboard or other windows to themselves
and who knows how much data would be compromised?
Dave Anderson is correct: The ONLY standard way to get a file from the
client machine to the server when using a browser is the <INPUT TYPE=FILE>
control. And that doesn't allow drag-drop because, within a browser, the
only way you can implement drag-drop (or copy from clipboard) is via
JavaScript and (again, as Dave said) you aren't allowed to script the <INPUT
TYPE=FILE> object.
So...
If this is a hard and fast requirement, your only solution will be to create
or find/buy a browser plug-in that is capable of this. And of course this
then requires EACH AND EVERY USER to allow the download and install of this
plug-in. Viable in an inTRAnet situation, if the installation is dictated by
management. Not really workable in inTERnet situation.
Your best choice, indeed, might be to stop trying to use a browser-based
solution and go to a windows-based solution. E.g., create a ".exe" program
that the users download and install. Of course, now that won't work in
non-Windows machines. But the odds are good that your browser plugin would
need to be browser-specific and machine-specific, so you are no worse off.
[There *IS* a possibility that you could use a Java Applet--Java, not
JavaScript--but again because of security restrictions each and every user
would have to accept the warnings and who knows what that using it would
engender. And that *assumes* that the user has Java installed and is
allowing Java applets in the browser, in the first place. I've never done
this, but I believe it is barely possible.]