Android, how do you make it right to keep the picture?
So I'm making an application where the avatar can be added when you're registered, how is it best to send the image on the server? Server writes the same. There's an idea to put everything in the bath mask and send it to the server, and when I get the data, I'll get it to bitmap. Or are there other ways?
There's a user model on the server, how do you make a field with a picture?
After the homing, I found a few examples of how this could be done.
In fact, based on personal experience, you can do it in a few ways. The fastest and simplest is to create POST customer queries and to send them to the server, where PHP will the code responsible for keeping the necessary picture. The harder option is the use of cell phones. If necessary, I will provide the code from my project responsible for loading. I've done the fifth, there's a client code and a server.