示例#1
0
        /// <summary>
        /// 下载图片
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public async Task <FileStreamResult> DownByURL()
        {
            string url       = Request.Query["url"];
            var    imgStream = await HttpTools.GetStreamAsync(url);

            return(File(imgStream, "image/jpeg", "商品图片.jpg"));
        }