Hi
With below API i am able to access Camera but i want that on click of button Image gets saved in a folder.
192.168.1.2/ISAPI/streaming/channels/01/picture. It asks for username and password
How this API can be used in VB6 code.
Thanks
Hi
With below API i am able to access Camera but i want that on click of button Image gets saved in a folder.
192.168.1.2/ISAPI/streaming/channels/01/picture. It asks for username and password
How this API can be used in VB6 code.
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sangeetha SPosted Mar 18, 2025, 6:43 AM
Eliana BlakePosted Mar 17, 2025, 4:43 PM
Hello! It's great to hear about your interest in accessing an IP camera API in VB6. To achieve your goal of saving an image to a folder upon clicking a button, you can follow these steps:
1. Making HTTP Requests: In VB6, you can make HTTP requests using the `MSXML2.XMLHTTP` object. Here's an example of how you can make a request to the camera's API and retrieve the image:
2. Button Click Event: You can trigger this code when a button is clicked in your VB6 form. Simply add a button control and place the above code inside its click event handler.
3. Adjusting the Code: Make sure to replace `your_username`, `your_password`, and the file path in `SaveToFile` with your actual credentials and desired saving location.
By implementing these steps, you should be able to access the camera's API, retrieve the image, and save it to a specified folder upon clicking the button in your VB6 application.
Feel free to ask if you have any further questions or need more assistance!