I am trying to retrieve Images using the REST API from iOS/Android.
The issue I’m running into is when the images are stored in the /sites/siteName directory, the REST call does not work. Let me explain further:
My REST call:
- That call does not work. I get a
Microsoft.SharePoint.SPException- The file
/sites/siteName/PublishingImages/image.jpgdoes not exist.
- The file does indeed exist because inside the web browser I can view the image using:
The REST call that does work is:
- That returns the image as expected.
I’m not a SharePoint developer so my knowledge is very light. But, I’m confused to as why those calls do not work.
Any help is very appreciated.