简体   繁体   中英

Qt5 How to convert DATA_BLOB to QByteArray

I'm currently working on a Qt Project which involves integration of the DigitalPersona U.are.U Fingerprint Scanner. The only problem I'm facing right now is the conversion of the Fingerprint DATA_BLOB template to QByteArray so as to store it into SQLite database. How to I go about that?

我终于找到了解决方案。

QByteArray arr= QByteArray((const char *)dataBlob->pbData, dataBlob->cbData);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM