Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {

            string id=Request.QueryString["id"];
            if (!string.IsNullOrEmpty(id))
            {
                Resource r = new Resource();
                byte[] buffer = r.GetDeletedImage(new Guid(id));

                if (buffer.Length > 100)
                {
                    Response.ClearContent();
                    Response.ContentType = "image/Jpeg";
                    Response.BinaryWrite(buffer);
                }
            }

            Response.End();

        }