int
ConvertImageFileToChar(
QString
strImageFile,
char
*pPlateImageChar)
{
QFile file(strImageFile);
if (!file.exists()) {
return -1;
}
QByteArray arrayData;
if (file.open(QIODevice::ReadOnly))
{
arrayData = file.readAll();
file.close();
}
else {
return -1;
}
if (arrayData.size() <= 0) {
return -1;
}