/// <summary> /// 读取媒体文件缩略图 /// </summary> /// <param name="mediaFileInfo"></param> /// <param name="mediaType"></param> /// <returns></returns> private byte[] GetMediaFileThumbnail(MediaFileInfo mediaFileInfo) { try { using (Stream stream = mediaFileInfo.OpenThumbnail()) { return(FileUtil.Stream2Bytes(stream)); } } catch (Exception) { } return(null); }