Re: How to load image file in Applet?

From: Sam (sam_at_edup.tudelft.nl)
Date: 04/22/04


Date: 22 Apr 2004 08:18:47 -0700

Roedy Green <see@mindprod.com.invalid> wrote in message news:<7hme8051eujjhj2v3qg9bs05tg3ar8h5bb@4ax.com>...
> On 21 Apr 2004 21:38:43 -0700, jennybabee111@yahoo.com.au (Jenny)
> wrote or quoted :
>
> >I need an applet loads and displays an image which is stored on server
> >side.
>
> See http://mindprod.com/jgloss/image.html
>
> The ImageViewer class will help you display an Image in an Applet.
>
> Usually you put the image in the jar along with the Applet and get it
> with getResource.

If you would want your applet to run an executable that lives in the
server, would you do this in the same way? Because I've been trying to
achieve the same type of thing, but I can't get it to work.

My problem is a bit different, I'm trying to build a webservice which
needs to run this executable, but I don't know how to tell the
webservice where the exe lives. Just for testing purposes I tried to
locate a txtfile with soemthing like the following

URL url = this.getClass().getResource("testfile.txt");
        String sam = url.toString();
        return sam;

but I get an error... I don't know where to put the testfile.txt file
in order for the webservice to find it though



Relevant Pages

  • Re: IIS 6 & Server Permisions
    ... I am running a server side applett. ... link where I can find the correct changes to make in IIS6. ... is this Java application running on the Web Server or the Web Browser. ... where is the Applet trying to store the hit counters? ...
    (microsoft.public.inetserver.iis)
  • Applet Hangs when submitting data to servlet
    ... on our web server. ... applet that demonstrates the problem. ... private JButton theSubmitButton_, theClearButton_; ... public void actionPerformed ...
    (comp.lang.java.programmer)
  • Re: Applet Hangs when submitting data to servlet
    ... on our web server. ... applet that demonstrates the problem. ... private JButton theSubmitButton_, theClearButton_; ... public void actionPerformed ...
    (comp.lang.java.programmer)
  • Re: AJAX devtool using Cobol
    ... managed by a Java Applet. ... Server Affinity is completely under ... just enter an asterix "*" for the Queue Name and then click ... Applet Java code is application-neutral and completely reusable. ...
    (comp.lang.cobol)
  • Re: Applet Hangs when submitting data to servlet
    ... on our web server. ... applet that demonstrates the problem. ... private JButton theSubmitButton_, theClearButton_; ... public void actionPerformed ...
    (comp.lang.java.programmer)