a nice blind guess!
if someone else wants to do the same, or is searching for an example:
@
def getImage(self):
imagen64 = open('call.base64','r').read()
imagen = QtGui.QImage()
bytearr = QtCore.QByteArray.fromBase64( imagen64 )
imagen.loadFromData( bytearr, 'PNG' )
self.label.setPixmap( QtGui.QPixmap.fromImage(imagen) )
@
where:
call.base64 is a file containing the base64 string with no CR nor LF, with a string of length:1888
encoded using php:
@
$imgfile = "call.png";
$handle = fopen($imgfile, "r");
$imgbinary = fread(fopen($imgfile, "r"), filesize($imgfile));
$fw = fopen('call.base64', 'w');
fwrite($fw, base64_encode($imgbinary));
fclose($fw);
@
with imports:
@
from PySide import QtCore, QtGui
@