I been trying to make out the URL in order to make a REST call which will fetch an image rendition from SP and then grab its value in order to convert it to base 64. I have been playing with the URL. I am working with a picture library. I am using the following URL's but I have not had any success. I have been crawling the web and have not seen any exmples
var url1 = "https://tentnat.sharepoint.com/sites/*site*/_api/web/GetFileByServerRelativeUrl('*relativeUrl*')/Pictures?select=RenditionID&$ Filter=RenditionID eq 1"; << get 404
var url2 = "https://tentnat.sharepoint.com/sites/*site*/_api/web/GetFileByServerRelativeUrl('*relativeUrl*?RenditionID=1 '); << get 404
var url3 = "https://tentnat.sharepoint.com/sites/*site*/_api/web/GetFileByServerRelativeUrl('*relativeUrl*')/?RenditionID=1/$value"; << get 404
var url4 = "https://tentnat.sharepoint.com/sites/*site*/_api/web/GetFileByServerRelativeUrl('*relativeUrl*')/$value"; << this is valid and does get me the image *200*