This time I want to use the image upload download process (I really developed to really know the whole process or need time, rather than normal adjustment)
1. As before, you need to get the picture and upload it to the server
Note that you still need to delete the previously stored files locally, this can be resolved first (generate a local address based on the variable)
2. Then get the picture
First, the network address that the picture stores on the server is stored first
Then you need to generate a local address based on the ID of the member
Send a broadcast to the page where the editing information is received.
This unification is:
Get the picture file from memory first (set a mapping variable)
If it does not exist, it is obtained from a local file.
If not, get directly from the network, then save to the local file and the network cache, and then resend the same broadcast to get (in fact, this need to consider whether there are other)
3. Next is the adaptation ImageView (this process needs to crop the picture, good can refer to the code used before)
In fact, the whole process is not difficult, the key or some cache problems, not clear, there are some methods, use later, the cached image file buffer becomes null, this time can no longer use the file, so took the broadcast method, re-loaded again.
About the entire Avatar Update issue (2)