How do I programmatically upload an XSLT file to an SSRS server database?
I would like exactly the same functionality as the ‘Upload File’, preferably using the ‘rs’ command.
I have tried rs.CreateResource, but it doesn’t seem to work for XML/XSLT files (though it works for Excel and image files)
I understand that manipulating the SSRS db is not supported.
Finally found the problem.
The XSLT file was getting uploaded with a trailing null byte at the end of file. Had to use a Hex viewer to see this.
To fix it I copied the array into another array, minus the last character and it’s all good now.