文件上传后读取两次数据

时间:2019-04-19 09:35:21

标签: c# asp.net file

我需要从上传的文件中读取两次数据。目前,它仅读取一次(第一次)。 PS(我不能使用AllAgentsB = AllAgents)

            Stream path = FileUpload1.PostedFile.InputStream;              
            ReadAgents(path, AllAgents);
            path.Position = 0;
            ReadAgents(path, AllAgentsB);

0 个答案:

没有答案