Let\'s say I have the base-64 code of an image in my script like so:
EmbeddedCode = \"\"\"INSERTCODEHERE.....
.....EXAMPLEEXAMPLE\"\"\"
If I co
Use the loadFromData method of QPixmap:
from PyQt4 import Qt,QtGui,QtCore
import base64
# "b64_data" is a variable containing your base64 encoded jpeg
app = QtGui.QApplication([])
w = QtGui.QWidget()
pic = QtGui.QLabel(w)
pm = QtGui.QPixmap()
pm.loadFromData(base64.b64decode(b64_data))
pic.setPixmap(pm)
w.show()
app.exec_()