android - Best way to store uri in mysql database -


i have android app in user registers using his/her facebook account, , want user's profile picture, method sdk offers returns uri(i) profile picture, want send uri php server , store in mysqldata base, , because new have bunch of questions: best way (field) store uri in server database? ll doing in further steps http request download picture, , method implemented download picture web server uses urls, have issues in using uri? there other issues ll have aware of in using uris? thank u in advance.

as has been commented, best way store in string form.

you can store uri using tostring method , when database later, can use uri.parse(string) method uri object.

to answer other questions...

the method implemented download picture web server uses urls, have issues in using uri?

this shouldn't problem it's simple task convert uri url.

is there other issues ll have aware of in using uris?

one thing note android has 2 types of uri available in sdk. one in android.net package (the 1 referred above) , the 1 java sdk. recommend familiarise available classes , decide 1 more suitable purposes.


Popular posts from this blog