我想保存网页(包括图片)。
实际上,我使用以下代码保存了网页。
Dim LocalFilePath As String = String.Format("D:\Jaison\Download\{0}.html",
Me.TextBox1.Text)
Dim objWebClient As New System.Net.WebClient
objWebClient.DownloadFile(
String.Format("http://localhost:52241/ppp.a
我想保护我网页中的图片。
我想要显示图像,但用户想要下载或保存图像,图像不应保存到本地硬盘驱动器。
我编写了自定义处理程序来限制对下载图像的访问,但此处理程序也限制了图像的显示。
我的代码是
public class MyFileHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "image/Jpeg";
context.Response.Write("you do