//用流读取图片 清空之后再次关联地址 //设置FileShare.ReadWrite权限之后 不会提示占用进程异常 item是物理路径DiscussionImageList = new InterviewDiscussionApiModel(); FileInfo MyFile = new FileInfo(item); MyStream=MyFile.Open(FileMode.Open,FileAccess.Read,FileShare.ReadWrite); DiscussionImageList.DISCUSSION_IMAGES = MyStream.Name; ImageListBox.Add(DiscussionImageList);
时间: 2024-11-25 17:18:00