简体   繁体   English

通过 RFC 返回二进制数据

[英]Return binary data via RFC

I want to return binary data in ABAP, for example a PNG image file.我想在 ABAP 中返回二进制数据,例如一个PNG图像文件。

Which data type should I use?我应该使用哪种数据类型? string, xstring, ...?字符串,xstring,...?

I use the PyRFC SDK: https://github.com/SAP/PyRFC我使用 PyRFC SDK: https : //github.com/SAP/PyRFC

xstring

Sidenotes if you have large data:如果你有大数据,旁注:

  • max size of an xstring is 2GB (depending also on profile parameter ztta/max_memreq_MB ) xstring 的最大大小为 2GB(还取决于配置文件参数ztta/max_memreq_MB
  • If you use an internal table of xstrings (eg dictionary type XSTRINGS_TABLE ), dynamic memory allocation is easier because it will not be requested in one go, as is the case for a flat xstring如果您使用 xstrings 的内部表(例如字典类型XSTRINGS_TABLE ),动态内存分配更容易,因为它不会一次性请求,就像平面 xstring 的情况一样

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM