How to display blob data type image from mysql using pyside qt on windows?
===

I want to display blob type  image from mysql database using pyside qt on windows.I have written below code but it displays only some part of image and another part in black.Please help me out.

                image = QtGui.QImage()
                imageInByteArray = QtCore.QByteArray(staff.photo)
                image.loadFromData(imageInByteArray, 'JPEG | PNG | GIF')
                self.ui.lblPhoto_2.setPixmap(QtGui.QPixmap.fromImage(image))
staff is sqlalchemy model object.