No, the photo always comes directly out of the database (where it is stored as a blob).