Collect records of a found set into a JSON object and transfer it to another file.
Parse the JSON object to a VirtualList.

Collecting can be done by native FM json functions, MBS json functions or using ExecuteSQL and some custom functions.

Inserting/updating can be done by parsing the json object by native json or MBS json functions, or by MBS or Base Elements FM SQL functions reading the data from the VirtualList.

Access the device's camera(s) to take a picture and store it to the database.
For FMS 17 and up it uses the Data API, FMS16 and less CWP/php to transfer the picture from the web viewer to the database.