Store a file picture in mobile and call it as display picture

hello folks i have a query regarding saving my picture into the mobile phone when user upload it as a display picture like whatsapp does and then call it as display picture in my application can you please give me a proper and documented solution