Camera Snapshots

I need to be able to capture a snapshot of the current camera view at 5 Minute intervals. The image would be saved to an FTP server and named with the camera name and a sequence number ranging from 1 to 10, for example ParkingLot001.jpg. Once the 10th image has been saved then the sequence numbers would start over at 1 and the process would repeat. This process would run 24/7. I am new to the Milestone xprotect professional plus 2017 would appreciate any help.

Please explore the CameraStreamResolution sample and how it can retrieve the live image in Jpg format.

https://doc.developer.milestonesys.com/html/index.html?base=samples/camerastreamresolution.html&tree=tree_2.html

On saving the Jpg please see - https://developer.milestonesys.com/s/article/How-to-save-a-JPEG-image-file-based-on-JpegData

PS. If you are new maybe you also need - https://developer.milestonesys.com/s/article/About-Milestone-software-development-Kit-SDK-download-link-For-MSP