NetTalk Central
NetTalk Web Server => Web Server - Ask For Help => Topic started by: johanl on September 21, 2012, 03:57:54 AM
-
Hello
I build up a list of images and their desciptions in a memory file and display them in a ntws browse.
I upload the images to the web\uploads directory and can physically see them there but when I say .\web\uploads\image1.jpg no image is displayed but if I say .\uploads an image is displayed but that path does not event exist.
Where am i going wrong with this?
Regards
Johan
-
the path for static files is relative to web.
In other words
images\whatever.png
is really
c:\something\web\images\whatever.png
cheers
Bruce
-
Hello Bruce
Are images stored in temporary files somewhere on disk as I display the image and the change the physical image but the old one remains?
Johan
-
Hello Bruce
Another dumb question in the followup to my previous one I build up an im-memory table of the images that I want to display. I copy them to the web\images directory (they are copied correctly), how do I then reference them?
A like this: .\web\Images\DS07137-015.jpg
B Like this: Images\DS07137-015.jpg
because currently only option B displays an image but that is like I said in my post 3 - a ghost image of a previous test not the one copied to the images folder.
Johan
-
B
Try to refresh your browse as the image may be cached.
-
Johan,
the images are almost certainly begin cached in the browser.
You can refresh your browser page (ie get the images again) by pressing Ctrl-F5 in the browser.
There are ways to get ti to _not_ cache the image, if you need to go that route, just ask.
cheers
Bruce
-
Hello Bruce
Correct image was cached, please explain to me how to change this
Johan
-
Thanks Kevin
-
in WebHandler,
_SendFile method
set
self.ForceNoCache = true
but you'll want to check the filename, because you definitly want to cache as many static files (.js, .css, .png etc) as possible. So only turn this on for a very small number of files.
cheers
Bruce