Created
January 5, 2015 13:35
-
-
Save fecub/8caaaacfcf6d36384b05 to your computer and use it in GitHub Desktop.
Write QByteArray to file or image file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QByteArray imageByteArray = blayer->TableContentRTM("Produkte")->record(pIndex.row()).value("Image").toByteArray(); | |
QFile newDoc("/home/fecub/fileName.png"); | |
if(newDoc.open(QIODevice::WriteOnly)){ | |
newDoc.write(imageByteArray); | |
} | |
newDoc.close(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for your code. I solve my questions