Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 DataUrl 中有一个图像,我需要将它保存到磁盘。我只是使用普通的“从 web url 保存”样式还是有更简单的方法可以做到这一点而不涉及 HttpWebRequest 的东西?
HttpRequest 不适用于data:URI。
data:
相反,您可以解析出实际数据,然后调用File.WriteAllBytes(Convert.FromBase64String(data))
File.WriteAllBytes(Convert.FromBase64String(data))