M
markcash
I have a web application where I am displaying the current inmate
population for the county jail. Part of the information that I
display is the mugshot. Unfortunately, they have changed the way the
mugshots are being named. So I need to read a directory and get the
newest image. The problem is that I can use the Create or Modified
Date.
Here is an example of what I have:
4580.001.jpg
4580.002.jpg
4580.003.jpg
etc.
etc.
The "4580" corresponds to the inmate and the ".001" is just a
sequential number for multiple mugshots of the same inmate. The ".
003" tells me that this is the latest image. Without knowing what
this number may be, is there an easy way to always retrieve the newest
image?
Any help that you can offer will be greatly appreciated. They are on
my back to get this back online and this is the only issue left for me
to resolve.
Mark
population for the county jail. Part of the information that I
display is the mugshot. Unfortunately, they have changed the way the
mugshots are being named. So I need to read a directory and get the
newest image. The problem is that I can use the Create or Modified
Date.
Here is an example of what I have:
4580.001.jpg
4580.002.jpg
4580.003.jpg
etc.
etc.
The "4580" corresponds to the inmate and the ".001" is just a
sequential number for multiple mugshots of the same inmate. The ".
003" tells me that this is the latest image. Without knowing what
this number may be, is there an easy way to always retrieve the newest
image?
Any help that you can offer will be greatly appreciated. They are on
my back to get this back online and this is the only issue left for me
to resolve.
Mark