Link to home
Start Free TrialLog in
Avatar of typhoid
typhoid

asked on

need help with getImage()

with the getImage() method, it needs a URL and a string name for the agruements.  what do i put for the URL if it is a local file, but not in the same directory as the applet itself.  therefore i can't use the "getDocumentBase()" or "getCodeBase()".  so what's the answer?
ASKER CERTIFIED SOLUTION
Avatar of aziz061097
aziz061097

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
Avatar of typhoid
typhoid

ASKER

this might work, i kept getting a nullpointer exception which doesn't make sense to me, because there was nothing mispelled, and all the files were where i specified them to be.  i'm not sure what the "test" in your answer is, is that the path?
Yes that is quite obvious . You have to escape the path ... I did not know you could not figure it out or I would give more explanation.
I put the image file About.jpg in a sub directory "test".
Avatar of typhoid

ASKER

i could figure it out, i just wasn't positive, and i like to be positive.  anyway, thanx for the advice, it might help
Mr aziz have my reguards, i appreciate your help