Ruby on Rails, programming, and SEO
Check out my articles about Ruby on Rails, programming, and SEO. Weekly updates? Subscribe to my feed.

Using the clipboard to post images

How to post an image from the clipboard using a java applet.

Update: The source code for this demo is now available here: Clipboard java applet

Update 2: Also try SUPA, which is a great ready-to-use alternative.

I just did a small test to see if it was possible to post images from the clipboard to a webapp.. and it is, using a signed applet.

The concept is to grab the image, post it to a php-script and then return the URL of the new image. Check it out here. (The applet code is rewritten from here).

Or if you don’t like trusting me to run my home made signed applet, just view this video: ;-)

Recorded with ScreenToaster

Related posts

Tags: , , ,

5 comments

  1. [...] source code my previous post about a clipboard image applet is now available here: [...]

  2. [...] Tweaking some Java code, compiling and signing a java applet in one day – see a demo here. [...]

  3. lassebunk says:

    Please also try SUPA – http://supa.sourceforge.net/ – which is a great ready-to-use alternative.
    /Lasse

  4. When a try execute the SUPA using demo.php, appear a message inside Image Preview ( Error). When a clicl over the message JAVA show me:

    Plug-in Java 1.6.0_30
    Usando versão JRE 1.6.0_30-b12 Java HotSpot(TM) Client VM
    Diretório base do usuário = C:\Documents and Settings\administrador.PREENGE
    —————————————————-
    c: limpar janela do console
    f: concluir objetos da fila de finalização
    g: coleta de lixo
    h: exibir esta mensagem de ajuda
    l: descartar lista de carregadores de classes
    m: imprimir uso de memória
    o: registro do disparador
    q: ocultar console
    r: recarregar configuração da política
    s: descartar propriedades do sistema e de implantação
    t: descartar lista de threads
    v: descartar pilha de threads
    x: limpar cache do carregador de classes
    0-5: definir nível de rastreamento como
    —————————————————-

    carregar: classe de.christophlinder.supa.SupaApplet não encontrada.
    java.lang.ClassNotFoundException: de.christophlinder.supa.SupaApplet
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)
    Exceção: java.lang.ClassNotFoundException: de.christophlinder.supa.SupaApplet

    I dont, now what i have to do, plese tell me :) a was tried all the solutions

    thanks….

  5. Timo says:

    Hi, don’t work on my server =(
    When I try to paste it nothing happens. I edited all urls. I have set all rights. I’m a little bit confused. Your Demo is working fine.

    Greets Timo

Leave a comment

Fork me on GitHub