Revision history [back]
For paragon RETS sites, ObjectID=0 or ObjectID=1 will always return the primary or first photo. If the agent moves the photo to the first slot it becomes ObjectID=1. ObjectID=2 and up are secondary photos.
You can use whatever naming convention you want to store them locally. Typically it would use the (listingid+sequence identifier) of some kind. You could use something like 44332_001, 44332_002, etc for example. Or a two digit sequence. If you zero fill, it would group the photos for a listing in order properly.