简体   繁体   English

如何创建http网站的屏幕截图并将其保存在服务器上?

[英]How can I create a screenshot of a http website and save it on my server?

How can I create a screenshot of an http website and save it on my server, using dot.net 如何使用dot.net创建http网站的屏幕截图并将其保存在服务器上

        byte[] byteArray = Encoding.ASCII.GetBytes( resp.BodyStr );
        MemoryStream stream = new MemoryStream( byteArray ); 

        pictureBox1.Image = Image.FromStream(stream);
        stream.Close();

I have tried the above code but it's not working 我已经尝试了上面的代码,但是没有用

Edit: Someone (not the author) completely changed the question in the OP. 编辑:某人(不是作者) 完全改变了OP中的问题。 My answer was right for that question, and now I'm getting marked down for it. 对于这个问题,我的回答是正确的现在我被打分了。

Edit: Here is a wonderful answer for you. 编辑:这是一个很好的答案。 Check the accepted answer for exactly what you're after: Using WebClient to get Remote Images Produces Grainy GIFs and Can't Handle PNG+BMP 检查接受的答案,以了解您的确切要求使用WebClient获取远程图像会产生颗粒状GIF,并且无法处理PNG + BMP

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何创建屏幕截图? - How can I create a screenshot? 如何截取我的 Xamarin.Forms 应用程序的部分屏幕截图并将其保存到我的库中? - How can I take a partial screenshot of my Xamarin.Forms app and save it into my gallery? 如何从网址获取网站的远程屏幕截图? - How can I take a remote screenshot of a website from a url? 如何从服务器上的现有文件创建vs.net网站项目? - How can I create a vs.net website project from existing files on a server? 如何将我的屏幕截图转换为二进制? - How do I convert my screenshot to binary? 如何转换文件并将其保存在服务器上? - How can I convert a file and save it on server? 我如何将我的列表框保存到ObservableCollection &lt;&gt; - How can i save my listbox to ObservableCollection<> 如何访问我抓取的值并将其添加到我的 DataGrid? 请看截图 - How can i access to the Value that i scraped and Add it to my DataGrid? Pls Look at the screenshot 我怎样才能完整截屏 - How can I take a screenshot full 如何将我的必应地图图像的屏幕截图复制到 Winforms 中的剪贴板? - How can I copy a screenshot of my Bing Maps image to the Clipboard in Winforms?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM