url = urlTest;
// url = url.replace("/", File.separator);
logger.log(logger.EXTREME, "Reading from file to create resource:" +url);
resourceFile = new QFile(url);
resourceFile.open(new QIODevice.OpenMode(QIODevice.OpenModeFlag.ReadOnly));
logger.log(logger.EXTREME, "Error opening file "+url.toString() +": "+resourceFile.errorString());
byte[] fileData = resourceFile.readAll().toByteArray();
resourceFile.close();
logger.log(logger.EXTREME, "File Length: " +fileData.length);
if (fileData.length == 0)
return null;