If I go to

http://localhost/somefolder/somepicture.bmp

I cant see if in my navigator.

Now

If I go to

C:/somefolder/somepicture.bmp

It works perfectly.

This is completely driving me crazy. I really have no other methods that I could try to get this to work.

Ask questions and Ill try to give answers.....
Thanks

What is the navigator program you are using?
Do you understand the difference between the http:// protocol and C:/ ?
The first requires a server.

What is the navigator program you are using?
Do you understand the difference between the http:// protocol and C:/ ?
The first requires a server.

This is why it is driving me nuts....

Im running this on a server but it only works on the local side, in its physical location.

In PHP I know why this happens but Im not sure if it is the same problem (shouldnt)

Please explain the programs that you are using.
What is the navigator?
Why do you think the server should respond to your http request?

Please explain the programs that you are using.
What is the navigator?
Why do you think the server should respond to your http request?

Basically, because I call the servlet, passing form values, and then after processing the data, it gives me a image...

Ill try to get back to you on monday.

Where is there any java programming involved in this problem?

Where is there any java programming involved in this problem?

HTML form calls itself with one of the <img> tags having a servlet, servlet response with a BMP shown in the img tags.

The java programming is the servlet.

Can you explain what programs are being used and where those programs are executing and where the image file is located?

Can you explain what programs are being used and where those programs are executing and where the image file is located?

Currently Im making the BMP and with response writing HTML containing the link to the file....

Was your last post a response for my question?
I don't see any relationship between your post and my question:

Can you explain what programs are being used and where those programs are executing and where the image file is located?

your problem might be caused by relative/absolute path error.Inorder to get absolute path of your image directory use this javax.servlet.ServletContext.getRealPath(java.lang .String/*your relative path here*/).

After banging my head repeateding on the keyboard, I figured out what was wrong.


And for the first time it actually wasnt my fault :P

Thanks to all :)

Can you post what you did to fix the problem so others with the same problem can see how you fixed it.

Can you post what you did to fix the problem so others with the same problem can see how you fixed it.

Using IE is a bad idea.......

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.