How to take a picture of the user on click?

Thank you for your answer. I will work on it and update you.