I have an image in a DataUrl and I need to save it to disk. Do I just use the normal “save from the web url” style or is there an easier way to do this without involving the HttpWebRequest stuff?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
HttpRequest will not work with a
data:URI.Instead, you can parse out the actual data, then call
File.WriteAllBytes(Convert.FromBase64String(data))