SAP / node-rfc

Asynchronous, non-blocking SAP NW RFC SDK bindings for Node.js
Apache License 2.0
252 stars 73 forks source link

Error fetching SAP document (workflow task attachment) using 'SO_DOCUMENT_READ_API1' #37

Closed doronoded closed 6 years ago

doronoded commented 7 years ago

Hi, I was trying to read an attachment data (bmp image) that was attached to a workflow task using the function SO_DOCUMENT_READ_API1, and I couldn't recreate the image on the client side. The data received was corrupted. I have also notice some kind of 'node-rfc' error in the returning structure. What is the correct way to retrieve an attachment from SAP?

image

doronoded commented 7 years ago

Hi, Has anyone noticed this issue?

fujifish commented 6 years ago

PR #39 should address this issue (use CONTENTS_HEX instead of OBJECT_CONTENT)

bsrdjan commented 6 years ago

Thank you @fujifish ! The issue should be fixed with 0.1.12. Could you please test?