Ejemplo n.º 1
0
    public HttpResponseMessage GetFileContent(string id)
    {
        XLDL   x   = new XLDL();
        string sql = "select URLBaiHat from BAIHAT where Id=" + id;

        path = x.GetDaTaID(sql);

        var httpResponce = Request.CreateResponse();

        httpResponce.Content = new PushStreamContent((Action <Stream, HttpContent, TransportContext>)WriteContentToStream);
        return(httpResponce);
    }