Thanks init2null. I actually did it a similar way. I used QFile::readAll() and stored that into the database. Then used QImage::loadFromData() to put into memory.

Now I want to view it and I want to display it with a few lineEdits and a couple of buttons in a QMainWindow. Unfortunately the widget I want to display it on is not giving me back it's proper size in order to scale the image. Do you know why it would do that?