If you already have the data in a QByteArray then use that.