Hi Guys,
I have created a custom service broker that takes values from SmartForm entries and creates a document using the novacode docX classes.
So far so good but I don;t know how to process the bytestream in K2.
Ideally I want to create an attachment and add it to a mail event in studio. I don't really need to store the document as it will be stored by the recipient of the email in another system.
Having said that, the easiest way I can see would be to store the file in a database, create a smartobject for it and pass the row referrence in a datafield to studio in order to grab the blob and do something with it.
My question is really a discussion around this approach, does anyone feel this is completely the wrong approach for example?
How would you do it?
Thanks