06-11-2014 07:55 PM - edited 06-11-2014 08:22 PM
I have an IP camera that is wish to be used as a based time delay camera taking a still image every hour, and I have final code for this which seemed to be working well for a while, however this morning mid-way through a run the DataSocket simply stopped after 4 hours and stopped returning anything from the camera.
I'm leaning towards this being a camera issue, but on the off chance there is something that can be improved with my retrieval code or someone has some knowledge about datasockets that could either improve my code or help resolve the problem I thought I'd ask.
The attached snippet is the Datasocket retrieval method taken from some ancient code on the forums, when run I am generating a 1184 error, however it is possible to enter the exact same URL in a browser and navigate to the image.
[EDIT] I forgot to mention that when navigating to the website the browser prompts for a password, but when I had the DataSocket working it never asked for a password at any stage. Is it possible to pass a password through a datasocket?
06-11-2014 10:05 PM
Well I have found a way around the problem using some reasonably hacky code that is pretty much never going to be used again, but it does allow a fairly standard way of extracting an image from a SHDocVw.IWebBrowser2, which I havent been able to find elsewhere on these forums.
Any thoughts for improvements or an alternative would still be happily accepted but this is what I have for now.