I want to return binary data in ABAP, for example a PNG image file.
Which data type should I use? string, xstring, ...?
I use the PyRFC SDK: https://github.com/SAP/PyRFC
xstring
Sidenotes if you have large data:
ztta/max_memreq_MB
)XSTRINGS_TABLE
), dynamic memory allocation is easier because it will not be requested in one go, as is the case for a flat xstring