by Mike.Sheen » Thu Feb 06, 2020 6:47 pm
All memory streams can be converted to a byte array easy enough, then it's just a matter of creating a new document and setting the FileBinary property to be that byte array and adding it to the documents collection of the sales order.
This seems to simple... I must be missing something...
Mike Sheen
Chief Software Engineer
Jiwa Financials
If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution