Link to home
Start Free TrialLog in
Avatar of kraphics
kraphics

asked on

Display image from full path

I have graphic images on several servers, and in some cases in several directories on one server.

My wish is to point to and display the graphic file, for instances http://members.spree.com/SIP/kraphic/DigitalData/26/DSC00003.jpg.

In my applet I open a text file that has a list of urls such as http://members.spree.com/SIP/kraphic/Halloween98/90141919.jpg and the url above.
My list can have as many as I desire.

I read the list, and place the list into a vector.

I wish now to traverse the vector and display the images.

The big problem for me seems to be that I don't have the applet in the same directory as the image files, but I don't want to have to have the applet in the same directory as the image files.

Is this possible ?

Kraphics
Avatar of blueben
blueben

you need to have the applet in the same directory so either put a copy of it in each image directory or sort out your image directories into one large one
1) What kind of server are you running on?
2) what is a vector?  Do you mean an array?
3) Do you want to display the picture all on the page or in a "slide-show" manner.
4) What is the applet for?

Avatar of kraphics

ASKER

Blueben, part of the problem is that the server where most of my images is does not support applets. I can only put files of type htm, jpg, or gif on it.

This only reinforce the ideal that there should be a way to refference a image file, and it's full path.

There must be a way to use an image without the applet being in the same directory.

My main server is an NT server, but most of my images are on the other server that does not support applets, but you see with as many images that I have, and plan to archive I have a need to store the images in seperate directores to help catalog them.

If I ever solve this initial problem I will store the full URL of each image in a database which will be searched based on the request. To do this I will need to extract the string from the database table and place it into the applet code.

A vector is like an array in that it stores related data, but more importantly the vector does not need to be initialized at any size, ant the vector can grow or shirnk as needed.(a VECTOR can also be used to store data of different types)

I am currently able to store and retrieve the image URLs to and from the vector, but I can't find a way to convert the string into a URL.

I tried getImage, but it does not work.

I tried to use "valueOf", but this also generates an error, and it should not. The data type "String" should support "valueOf", but I get an error.

MasseyM, I would like to use the applet in a slide show manner, but if I get it to work I will also use it to display multiple images on a page.
ASKER CERTIFIED SOLUTION
Avatar of ptruman
ptruman

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ptruman, If I open an html page at lets say

http://www.kraphics.com/imaginethis.html

and lets say that I also put the applet at the same place

http://www.kraphics.com/jpgapplet.class

what must I put into html page to point to images, lets say

http://members.spree.com/SIP/MyImages/see.jpg 

                  and

http://members.spree.com/SIP/MyImages/26/this.jpg

Thanks