zoukankan      html  css  js  c++  java
  • 图片的读取和保存操作

         public static void LoadPicFromStream(string url)
            {
                string content = string.Empty;
                HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("");
                request.Method = "GET";
                HttpWebResponse response = request.GetResponse() as HttpWebResponse;
                Stream stream = response.GetResponseStream();
                Image image = Image.FromStream(stream);
                image.Save("", System.Drawing.Imaging.ImageFormat.Jpeg);
                
            }
  • 相关阅读:
    RPC学习
    json
    jsf
    ajax分析
    async分析
    web后台
    servlet和CGI区别(转)
    forward和redirect
    (转)jvm
    Async分析
  • 原文地址:https://www.cnblogs.com/slu182/p/4252740.html
Copyright © 2011-2022 走看看