Reputation: 133
I'm new to Android and would like to ask is it possible to save the files (incl. image, text etc) created within a app directly to the php server? Without saving it in any internal or external storage like SD card?
This is due to users are not allowed to access to the data once they offline.Users shall not kept anything to their personal device other than accessing it online by login in.
I have read through the passage of Data Storage in Android developer website. What was mentioned there is just the ways for data storage. Web server as the last options without having any examples.
Please advise and give a snippet if possible.
Another questions will be, in such a situation(save in server without saving in SD card). Any idea on how to keep the created data temporary if let's say the internet connection is down? And I do not wish to lost any data?
Please give some suggestion, if you have any for the problem.
Upvotes: 0
Views: 1596
Reputation: 8242
No exampele because nothiong is android specific here .
create webservice to store file send the data to webservices from device . in case of images send its ByteStream . example is here .
Upvotes: 1