473,405 Members | 2,171 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

stockpiling images from a web cam

I've found this might not really be possible to do with js, but I'm not
really versed enough in it to know for sure.

I have a web cam saving an image to a server, "cam.jpg". The cam replaces
the image every x seconds.

On the client I have some simple js that grabs "cam.jpg?" + [current
date/time] (to fail the browser's cache lookup of cam.jpg) when a timer
fires. It's the typical home-brew refreshing-cam scenario, and that's all
working fine.

What I want to do (just for my own purposes, so browser compatibility and
whether or not this is even a good idea isn't really an issue on this) is
add a playable 'movie' of everything the client has grabbed so far, using
all the previous image grabs as frames. Which at first I assumed would
involve saving all the images to an ever-growing array, and then looping
through it via timer to 'play the movie'. But what I'm finding is that you
can't really store "images" in js variables, you can only store objects that
contain information about images that already exist somewhere, is that
right? I don't think I want to save anything to the client disk, even if I
could... I'd rather fill up my memory and crash my browser than consume all
my free HD space. I want to leave this thing on all day to get some
time-lapse images out my window, and silly stuff like that. Is this even
possible to do?
Jul 20 '05 #1
1 1306
Mr. Orange wrote:
[...] But what I'm finding is that you can't really store "images"
in js variables, you can only store objects that contain information
about images that already exist somewhere, is that right?
Yes, it is, unless you use a client-side API that does this.
I don't think I want to save anything to the client disk, even if I
could...
You can and, actually, you already do. Every time the image is
displayed, it is most certainly stored in the disk cache if not
already there. The Image object merely allows you to use the
cached image instead of the server resource, if supported.
I'd rather fill up my memory and crash my browser than consume all my
free HD space. I want to leave this thing on all day to get some
time-lapse images out my window, and silly stuff like that. Is this
even possible to do?


No, it is not, unless you can use a client-side API that allows that
(ActiveX?). You cannot specify how resources are cached by the UA
by default.
PointedEars
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Wayne | last post by:
I have a script that uses filesystemobject that reads files from a given path, in my case images. It is running on a server that is 2000 adv svr w/ all current patches. The script prior to some...
11
by: Penelope Baker | last post by:
Greetings: I cannot seem to get IE 6.0 to pre-cache my rollover images. Every time the user rolls over a link, it rereads it from the server, even though it is well into the cache by that time....
2
by: Julie | last post by:
Hi, I'm trying to change images on a website without reloading the whole page and use the following code to preload the images: var preloadFlag = false; function preloadImages() { if...
3
by: Simon | last post by:
This problem has been driving me mad for months.... Seen a few posts on forums about it but no answers... No mention on MSDN etc. XP Pro SP1, VS.NET (c#) .Net framework 1.1, IIS 5.1. In a...
4
by: Bernie Raffe | last post by:
When I change the 'cookieless' flag in the WebConfig file to true, everything works fine on my local PC, but the images fail to appear when using the remote server. I specify my images...
2
by: Alex | last post by:
I have a web application hosted on the server's F:\www directory. I have images stored on the file system at E:\Images. I have the website shared thru IIS pointing to the F:\www directory. 1.)...
4
toxicpaint
by: toxicpaint | last post by:
Hi, can anyone give me a hand. I'm currently displaying 4 random images at the top of a page. I did this using an array of 35 pictures and then writing them to page. The problem I have is that in...
5
by: remon87 | last post by:
I need some help. I have javasript that creates the submenu but it works if I have a text with css. I need it to do the same with a roll over images. so when I click on the image the submenu...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.