Solved

java iis4 and a whole bunch of other crap..

Posted on 1998-09-18
2
206 Views
Last Modified: 2010-04-09
this is REALLY important to me, so here's the lowdown:

i have a webcam page (banus.com/stream)
my pics WERE being housed on the banus server which is a virtual server 600 miles away running iis4..
problem was, when i have the pics on banus, the server caches the files and will sometimes cause the pics not to reload correctly.. (turning the cache feature off on iis4 is not an option since there are several other people on that particular nt machine)..
so my first simple solution was to get a free account at geocities and store the pics there.. this works fine for the non-java version of my webcam which uses a small count downdown javascript to refresh the page at whatever interval.. for the java version i have run into a problem: java's super tight security.. it simply won't let me work with two different machines!! atleast thats all i can tell at this point..

if i put the java class on banus, and the pics on banus, the pics show up, but like i said, they won't refresh right..

if i put the java class on banus, but the pics on geocities, the pics don't show up at all..

and they still don't work if i try to access the java class AND the pics on the geocities server..

can someone possibly think of a solution to this?
0
Comment
Question by:rabbitears
2 Comments
 
LVL 1

Accepted Solution

by:
alweiner earned 100 total points
ID: 1837929
Change the program (on banus) so that, each time a picture is generated, the time is tacked on to the name of the picture.  For example, if you've been using me.gif for all the pics, use instead:

me01:00:01.gif
me01:00:02.gif
.
me<time>.gif

Since the file names will be different each time, there will be nothing to cache.  You'll want to also add some code to delete the previous file :)
0
 
LVL 28

Expert Comment

by:sybe
ID: 1837930
Some ideas:

1.
Get the pictures with a time dependent querystring:

timevariable = now
image.gif?timevariable



2. use ASP (runs default on IIS4) to send the images:
<%
Response.ContentType = "image/gif"
%>
<!--#INCLUDE FILE="image.gif"-->

The name of the image is then "image.asp" (or whatever you will name the asp-file).


0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

860 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question