Usage:

1. Load extension (32 or 64).
2. This query will save the images and will return success or fail for each image.

select name_field, graphic_field, save_blob(graphic_field, 'C:\images\' || name_field || '.jpg') from table_with_images;

3. The destination folder will be created if does not exist.
4. Delphi source code is included.