c# - 在 C#.net 中使用 SOAP 请求上传大文件并将其传递给 VB.net 中的 Web 服务 API
问题描述
我们正在使用在 C#.net 中开发的 SOAP 请求上传一个大文件,并将其传递给在 VB.net 中开发的 Web 服务 API。
在现有的逻辑中,我们已经实现了 Base64 编码算法,相应的代码片段如下所示。
Byte[] bytes = File.ReadAllBytes(FileName);
Base64String = Convert.ToBase64String(bytes);
但在这种情况下,我们能够在 IIS 7.0 服务器上上传一个文件直到 70 MB。我们遇到了文件大小超出此范围的问题。
现在我们需要解决方案来了解如何通过将 SOAP 附件作为 SOAP 附件发送到 SOAP 请求 API 来上传大尺寸(例如,超过 500 GB)文件。我们还想知道通过 mime-soap 附件发送它的可能方式。
示例 XML 数据:- http://www.dummy.com' xmlns:xsd=' http://www.dummy.com ' xmlns:soap=' http://dummy.com/soap/envelope/ '>
Referred links1
https://www.theserverside.com/news/1363957/Sending-Attachments-with-SOAP
Referred links2
https://community.boomi.com/s/article/mime-soap-attachments
解决方案
推荐阅读
- c++ - Meson 找不到包,但 pc 文件是找到所有其他文件的地方吗?
- python - 函数内或函数外的输入函数
- java - 为未定义主键但已创建唯一索引的表创建 JPA 模型类
- javascript - 使用键拆分对象数组
- java - 错误:变量 myS 已在方法 main(String[]) 中定义 String myS = myS + myString;
- javascript - 从平面对象创建嵌套对象
- opencl - openCL:直接从主机内存初始化本地内存缓冲区
- git - 无法从 aws 克隆 git repo
- gridjs - gridjs - 如何在来自服务器的数据显示在表中后运行函数?
- angular - 角 12.2.9。和 TypeScript - 服务实现是否可以扩展它实现的抽象服务而不是实现它?