Exemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            Proxy.ServiceClient client = new Proxy.ServiceClient();
            var fileName = client.Upload(FileUpload1.FileContent);

            Session["file"] = fileName;
        }
Exemplo n.º 2
0
        protected void Button2_Click(object sender, EventArgs e)
        {
            Proxy.ServiceClient client = new Proxy.ServiceClient();
            var          stream        = client.Download(Session["file"].ToString());
            StreamReader reader        = new StreamReader(stream);

            Response.Write(reader.ReadToEnd());
        }