Getting an error when trying to store database in cache directory
Hello,
"SQLError: 'Error #3125: Unable to open the database file.', details:'Connection closed.', operation:'open', detailID:'1001'"
this is my code :
sqlConn = new SQLConnection();
var str:String=File.applicationDirectory.nativePath;
var cacheDir= new File(str +"/\.\./Library/Caches");
var dbFile:File=cacheDir.resolvePath("DB.db");
sqlConn.open(dbFile);
sqlStat = new SQLStatement();
sqlStat.sqlConnection=sqlConn;
It works if I use var dbFile:File=File.applicationStorageDirectory.resolvePath("DB.db");
