A
aarondouglas28
Hey all,
I'm hoping someone can help me with a little problem I have.
First a little background. I'm working on developing a site which
displays live feeds from a security camera. The camera is connected to
our network via a network video server. Now here's the problem.
One of the requirements of this particular project is that the user be
able to save a snapshot of the live video feed at any given time and
save it to disk. Now, the network video server provides a method for
generating snapshots. The problem I have is getting the page to save
the snapshot automatically.
The address of the image actually works out to be something like
"http://www.site.com:97/images1sif?random=4325623"
The port is specified in the address because that is how the network
camera server is referenced by our routers.
I currently have a page set up that can display an image specified and
has a save button that the user can click to save the image (some of
our users aren't bright enough to right click and choose save as...).
The code I currently have is as follows:
sFileName = "Temp.jpg"
sFile = imgArchive.ImageUrl
Response.ClearHeaders()
Response.ClearContent()
Response.Clear()
Response.AddHeader("Content-Disposition","attachment;filename=" &
sFileName)
Response.ContentType = "Image/JPG"
Response.WriteFile(Server.MapPath(sFile))
This code works fine when the image is stored on the server itself,
however the images I need to save are not stored on the server, they
are on the network video server as I stated before.
Also, I will need to occasionally save these images directly to our
server for other purposes.
Any help that can be provided is appreciated. If any other
clarification is needed, please let me know.
I'm hoping someone can help me with a little problem I have.
First a little background. I'm working on developing a site which
displays live feeds from a security camera. The camera is connected to
our network via a network video server. Now here's the problem.
One of the requirements of this particular project is that the user be
able to save a snapshot of the live video feed at any given time and
save it to disk. Now, the network video server provides a method for
generating snapshots. The problem I have is getting the page to save
the snapshot automatically.
The address of the image actually works out to be something like
"http://www.site.com:97/images1sif?random=4325623"
The port is specified in the address because that is how the network
camera server is referenced by our routers.
I currently have a page set up that can display an image specified and
has a save button that the user can click to save the image (some of
our users aren't bright enough to right click and choose save as...).
The code I currently have is as follows:
sFileName = "Temp.jpg"
sFile = imgArchive.ImageUrl
Response.ClearHeaders()
Response.ClearContent()
Response.Clear()
Response.AddHeader("Content-Disposition","attachment;filename=" &
sFileName)
Response.ContentType = "Image/JPG"
Response.WriteFile(Server.MapPath(sFile))
This code works fine when the image is stored on the server itself,
however the images I need to save are not stored on the server, they
are on the network video server as I stated before.
Also, I will need to occasionally save these images directly to our
server for other purposes.
Any help that can be provided is appreciated. If any other
clarification is needed, please let me know.