The right and wrong way to save file paths in Titanium Mobile - From http://skypanther.com/2015/08/the-right-and-wrong-way-to-save-file-paths-in-titanium
// right way:
var file = Titanium.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, filename);
file.write(imageBlobData);
// save only the file's name
myModel.set('filepath', filename);
myModel.save();
// then this will work even after an upgrade
myImageView.image = Ti.Filesystem.applicationDataDirectory + myModel.get('filepath');