• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 248
  • Last Modified:

graphics to clipboard ?

How can I put my graphics (image) into clipboard using Internet Explorer 5.5 (win nt) and Microsoft VM (~JDK 1.1.1) ?
Philippe Charles
Philippe Charles
  • 2
1 Solution
The data transfer classes in JDK 1.1 only supports transfering strings with the system clipboard.


And in later versions of Java, I think you have to sign your applet to access the clipboard, as it is regarded as a security risk :-/

What you *may* be able to do, is have your applet call a javascript function, passing the image...then the javascript should be able to put the image into the clipboard...

Philippe CharlesAuthor Commented:
Thanks! That's what I though !
Do you have an idea how to do that (I mean : using javascript to put the image in the clipboard)?
Sorry, no :-(

I'm not even sure if you can access the system clipboard throught javascript with Netscape...  IE should (might) be ok, but again, Opera might be another kettle of fish...

Don't you just hate the lack of javascript standardisation :-(

Maybe post a 50 point question on the javascript board?  Someone there should know if it can be done...

Sorry I'm not much help :-(

If this doesn't work, have you considered an ActiveX control?

If you are only running on WindowsNT, you would get much better control over the clipboard with ActiveX

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now