Пример #1
0
 /// <summary>
 /// 获取图片路径列表
 /// </summary>
 /// <returns></returns>
 public Stream GetSystemPicture()
 {
     try
     {
         NoticeBLL noticeBLL = new NoticeBLL();
         string    resul     = noticeBLL.GetSystemPicture();
         if (!string.IsNullOrEmpty(resul))
         {
             return(new MemoryStream(Encoding.UTF8.GetBytes(resul)));
         }
         else
         {
             return(new MemoryStream(Encoding.UTF8.GetBytes("error")));
         }
     }
     catch (Exception err)
     {
         Logger.Error("GetSystemPicture Error", err);
         return(new MemoryStream(Encoding.UTF8.GetBytes("error")));
     }
 }