Dali_BM
Dali_BM

Reputation: 11

How to get the clipboard client content and send it to server as a file

I am developing a Java/J2EE application, and I want to upload a file to my server with the client clipboard content.

I developed a Java applet but I have an access denied failure to get the client clipboard. Does anybody have any ideas that can help me? Any OCX plugins that could resolve the problem?

Thank you.

Upvotes: 1

Views: 261

Answers (2)

Dali_BM
Dali_BM

Reputation: 11

thank you Joop, follow to your poste i found this link that describe, how we can get image clipboard with javascript code: Pasting image from clipboard

Upvotes: 0

Joop Eggen
Joop Eggen

Reputation: 109567

There is very limited JavaScript code (= non crossbrowser) and either with AJAX or with an applet (JS can pass the string to the applet) you may receive the text.

Upvotes: 1

Related Questions