Hi @Leon
Thanks for sharing the code snippet and for explaining the scenario!
Instead of converting the file content to a base64 string, why not create a ByteArrayContent
from the bytes and set the appropriate headers (Content-Type
and Content-Disposition
) ?