Hi,
I am getting google profile image using the payload. I need to save the url image to my www roote folder inside images folder (www/images/) and save the file path to my db field "googleProfileImage" so I can acess the image later.
I found a solution:
string url = payload.Picture; using (WebClient client = new WebClient()) { client.DownloadFile(new Uri(url), @"C:\Users\shahe\source\repos\backup\ExpenseTrackerApplication\ExpenseTracker\wwwroot\google\"+payload.Email+".png"); }
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.