I was writing a Notes application to catalog photos saved on a network directory.
That was a good opportunity reading data within photos saved by modern digital cameras.
What kind of data? For example photo date/time, camera maker, etc.
That data format used by digital camera is called Exif, that is Exchangeable image file format, read by many imaging software.
I found a free Java library, Metadata Extractor. Take a look, it is very useful.
That was a good opportunity for me to write a Java library inside Lotus Notes and also take advantage of the LS2J (LotusScript to Java) interface to call Java code from a LotusScript agent.
First I wrote a very simple Lotus Notes Java library, ExifReaderLib, to wrap some calls to the MetadataExtractor library; then I wrote a sample LotusScript agent, "test ExifReaderLib", to show how to use exifReadLib using LS2J technique.
parameter= photo full-path filename to analyze
parameter= tag name (e.g. "Model")
Return a string description for a given tag name
parameter= string separator t (e.g. "$$$" )
Returns a string with all tags and descriptions found inside the photo, separated by a string (the separator parameter)
I tested the code inside Lotus Notes R8, but it should work in R7 too.
Use at your own risk ;-)
download EXIFLS2J.zip , my test Lotus Notes db (hosted on divshare.com)