Forum Discussion
Returning Images via the API using Path rather than ID
- 6 years ago
This was a bug that was introduced recently. I was told by a contact at Microsoft that this had been fixed but I just double checked the recent May 2020 release and this is still happening. I looks like the GET against the /Resources works with path= to get the metadata, but when you add /Content/$value, then it breaks.
I did just find one work around, you can use the WebService endpoint instead of the Portal's REST API and use a request like the following:
https://MyUrl/reportserver?/MyPath/Text-Blue.png&rs:Command=GetResourceContents
This was a bug that was introduced recently. I was told by a contact at Microsoft that this had been fixed but I just double checked the recent May 2020 release and this is still happening. I looks like the GET against the /Resources works with path= to get the metadata, but when you add /Content/$value, then it breaks.
I did just find one work around, you can use the WebService endpoint instead of the Portal's REST API and use a request like the following:
https://MyUrl/reportserver?/MyPath/Text-Blue.png&rs:Command=GetResourceContents
Perfect Darren, the web service end point works.
Shall I raise a bug?
Many thanks.