Hi Guys,
I am devloping a process that involves a hardcopy endpoint. I'm using NovacodeDocX in a custom service broker, The smartobject takes values from a smartForm and creates memory stream which is stored in a database, an additinal smartobject is used to display the files using a list method.
The issue I am having is one of formattting, if I write the memery stream as a blob to the databse there is no issue in .net land however, K2 seems to wrap the blob in some XML when you use the smart form file attachment control on a correctly configured smartobject.
Obviusly I need to accompish this programmmatically when writting to the database from my custom class as at the moment the blob is not recognised by K2.
When inspecting the database you can see the correct verison has <file><name><contents> tags. I think the content tags contain the actual blob.
Is there a K2 object in the SDK I have to cast or write to in order for this to work?
Or do I have to create the wrapper on the fly?