I need to export images from BLOB fields held in a MySQL Database as image files (.jpg) using a file name made up of the unique key field contents and a variable. There are 6 images per record, so image one for record 635 would be 635.jpg, image two would be 635a.jpg, image three would be 635b.jpg etc. This would be done using a script and automated to run through the entire file (about 250 records) can this be done using SQLyog ?