Forum Moderators: coopster
Once I have them saved in the directory, I could run any script of my liking to covert them to jpeg's so that part will be easy.
How can I extract these bmp's to a directory and give them a name?
Thanks,
Rob
then for each row returned you save the image data with the name that can be created from the id or name if there is one.
$handle = fopen('somepath/' . $image_name . '-' . $image_id, 'w+');
if( $handle ) {
fwrite($handle, $image_data);
fclose($handle);
}
and so the above code can be placed inside the loop of the mysql retrieval of rows.