File Saving - abbashosseini/Vinci GitHub Wiki
image creation
you can create images in internal Storage in android devices with file() method from Loader class
Vinci.base(context).process().load(uri).file();
and its download image from the net and save it in defualt path InternalStorage/Vinci/Files and after that you can check if is create image successfully with isCreated() method
Storage store = Vinci.base(context).process().load(uri).file();
Log.e("Created", Boolean.toString(store.isCreated()));
and you need save path/uri in database for later use you can get path/uri with getfullPath() and you retrive it
Storage store = Vinci.base(context).process().load(uri).file();
Log.e("FullPath", store.getfullPath().getPath());
some time you need do some thing maybe vinsi can do it for you and you can retrive File Object and can do anything with it
Storage store = Vinci.base(context).process().load(uri).file();
Log.e("FileObject", store.FileObject().toString());
or when done with the file you can delete it with remove() method
Storage store = Vinci.base(context).process().load(uri).file();
Log.e("Deleted : ", Boolean.toString(store.remove()));
or you want delete all image you save in Vinci/Files you can use deleteAll() method from Files class and you can access it from loader class with method files
Files store = Vinci.base(context).process().files();
store.deleteAll();
//or
Vinci.base(context).process().files().deleteAll();
and last one you want get bitmap from current url you can use getBitmap() from Storage class
Storage store = Vinci.base(context).process().load(uri).file();
Log.e("Get Bitmap File", String.valueOf(store.getBitmap()));
Example : Store a Files into internalStorage:
Storage store = Vinci.base(context).process().load(uri).file();
Log.e("Created", Boolean.toString(store.isCreated()));
Log.e("FileObject", store.FileObject().toString());
Log.e("FullPath", store.getfullPath().getPath());
Log.e("LocalPath", store.LocalPath());
Log.e("Get Bitmap File", String.valueOf(store.getBitmap()));