Helpviewer/Network/PyrcAccessHandler.py

changeset 38
5fe2b7deab15
parent 13
1af94a91f439
child 168
3383117f894b
--- a/Helpviewer/Network/PyrcAccessHandler.py	Thu Jan 07 19:03:58 2010 +0000
+++ b/Helpviewer/Network/PyrcAccessHandler.py	Fri Jan 08 14:44:33 2010 +0000
@@ -38,8 +38,8 @@
             imageBuffer = QBuffer()
             imageBuffer.open(QIODevice.ReadWrite)
             if pixmap.save(imageBuffer, "PNG"):
-                html.replace("IMAGE_BINARY_DATA_HERE", 
-                             str(imageBuffer.buffer().toBase64()))
+                html = html.replace("IMAGE_BINARY_DATA_HERE", 
+                             bytes(imageBuffer.buffer().toBase64()).decode())
             return NetworkReply(request, QByteArray(html), "text/html")
         
         return NetworkProtocolUnknownErrorReply("pyrc")

eric ide

mercurial