![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
微信
驯鹿的熊猫人
学以致用,成就自我
展开
-
上传临时素材
public JsonResult Temporary_UploadPhoto(){//创建一个文件夹string uploadPath = "~/image/";string flieder = Server.MapPath(uploadPath);//判断图片是否已经存在if (!Directory.Exists(flieder)){Directory.Cr原创 2017-11-29 14:10:17 · 884 阅读 · 0 评论 -
上传永久素材-图片
public JsonResult UploadPhoto(HttpPostedFileBase media){//获取上传文件的字节数组var buf = new byte[media.InputStream.Length];//读取数组media.InputStream.Read(buf, 0, (int)media.InputStream.Length);//原创 2017-11-29 16:12:09 · 651 阅读 · 0 评论 -
新增图文素材
public ActionResult Index() { articles_DTO ato = new articles_DTO(); List alist = new List(); _articles ar = new _articles(); ar.ti原创 2017-12-03 11:54:25 · 353 阅读 · 0 评论 -
动态上传视频
/// /// 使用Post方法获取字符串结果 /// /// /// Post表单内容 /// /// 默认20秒 /// 响应内容的编码类型(默认utf-8) /// public sta原创 2017-12-03 09:47:03 · 213 阅读 · 0 评论