Hi,
we have this kind of scenario. We got file data as binary from JSON and that binary should be converted to text and added as content to a document that is also created in the same web script. Now ScriptContent has following method "write" that takes another ScriptNode as a parameter, does the conversion automatically and writes it. If I use document.content.content = <my binary> it adds the binary as String without conversion. But I only have this raw binary data so I can't use write method either (it needs another ScriptContent). How could I write the content to a file? Or is there any method I could use to convert the binary to text and add as content? I should do the conversion in web service javascript where all the native javascript functionality is not available. A bit tough scenario.
Thanks in advance to anyone willing to help.