SELECT image_data, filetype FROM images WHERE id=347;