![](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 · 881 阅读 · 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 · 647 阅读 · 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 · 352 阅读 · 0 评论 -
动态上传视频
/// /// 使用Post方法获取字符串结果 /// /// /// Post表单内容 /// /// 默认20秒 /// 响应内容的编码类型(默认utf-8) /// public sta原创 2017-12-03 09:47:03 · 211 阅读 · 0 评论