c# - 文件上传后两次读取数据
问题描述
我需要从上传的文件中读取两次数据。目前它只读取一次(第一次)。PS(我不能使用 AllAgentsB = AllAgents)
Stream path = FileUpload1.PostedFile.InputStream;
ReadAgents(path, AllAgents);
path.Position = 0;
ReadAgents(path, AllAgentsB);
解决方案
推荐阅读
- rust - 在 Rust 中序列化 rust-protobuf 消息的方法
- c# - 从 JSON 字符串加载 Jquery 方法中的事件
- python - 获取“ TypeError:'NoneType'对象不可下标”错误
- javascript - TypeError setEmail 不是函数
- dask - dask分布式等待(未来)与future.result()之间的区别?
- javascript - 跨站点 iframe 在 heroku 部署中中断。Redux 商店可能是罪魁祸首?
- python - Python函数不适用于看似正确的字符串路径
- javascript - 从 ES6 类方法中获取错误“TypeError: Cannot read property 'doFileHasCorrectFileExtension' of undefined”
- c - 如何处理从 C 到 x86 程序集的参数
- javascript - 单击Javascript后如何停用按钮