HOW TO GENERATE PHYSICAL WORD DOCUMENT FROM BINARY DATA IN REST API

HOW TO GENERATE PHYSICAL WORD DOCUMENT FROM BINARY DATA IN REST API

  

Hi All,

I have created a REST api to upload word document as binary to my database.

Now I need to physically create a word document on server(from the template uploaded as binary) either through REST api or web app.

Do you have any idea how to achieve this?

Thanks for your help!

Kind Regards

Sandeep

Solution

Hi Sandeep,

You can use the following forge component to achieve this:

http://www.outsystems.com/forge/Component_Versions.aspx?ProjectId=687

There are various functions for Word like: GenerateFile, SetTemplate, etc.

The input structure for these functions is a structure 'WordFile' that has a 'Template' binary attribute that you should use with the binary that you have in your database.

Let me know if you have any issues,

Justin

Solution