分段读取文件并保存文件到数据库(QT版本)
作者:互联网
QSqlQuery query(m_db);
query.prepare("INSERT INTO files(filename,uuid,dbData,dbSize)"
"values(:filename,:uuid,:dbData,:dbSize)");
query.bindValue(":filename", strFileName);
query.bindValue(":uuid", QUuid::createUuid().toString());
query.bindValue(":dbData", byteArray,QSql::Binary);
query.bindValue(":dbSize", byteArray.size());
标签:文件,QT,uuid,filename,dbSize,dbData,query,bindValue,读取 来源: https://www.cnblogs.com/kinglxg/p/13088887.html