首页 > 解决方案 > 文件上传后两次读取数据

问题描述

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

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

标签: c#asp.netfile

解决方案


推荐阅读