Or you could store in database PATH to picture, not picture itself, like I did ...