I have some object like:
class Object{
int id;
String content;
String path;
}
content uausally has 1M~100M.
I have 2 solution:
1.store content in file and put path in database.
When I want to upload ,I should read file and combine content with id to a String .And upload the String.
When I want to upadte, I need to change file and its name and update path in database.
2.store content directly in database.I would create a new database rather than use the app's orginal one.
When I want to upload ,I just serialize the Object query from database and upload it.
When I want to updata,I just update database.
Aucun commentaire:
Enregistrer un commentaire