简体   繁体   English

Qt5如何将DATA_BLOB转换为QByteArray

[英]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. 我目前正在从事一个Qt项目,该项目涉及DigitalPersona U.are.U指纹扫描仪的集成。 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. 我现在面临的唯一问题是将指纹DATA_BLOB模板转换为QByteArray,以便将其存储到SQLite数据库中。 How to I go about that? 我该怎么办?

我终于找到了解决方案。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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