Retrieve Images Not Working Via REST API

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: //tenant/_api/web/GetFileByServerRelativeUrl('/sites/siteName/PublishingImages/image.jpg')/$ value

  • That call does not work. I get a Microsoft.SharePoint.SPException – The file /sites/siteName/PublishingImages/image.jpg does not exist.
  • The file does indeed exist because inside the web browser I can view the image using: //tenant.com/sites/siteName/PublishingImages/image.jpg

The REST call that does work is:

  • //tenant.com/_api/web/GetFileByServerRelativeUrl

    ('/News/PublishingImages/image.jpg')/$ value

    • 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.

Thanks

Retrieve background color in ubuntu mate

I am using Ubuntu mate 18.04.3 LTS.

I am quite fond of my background color and would like to use it on another machine. Where can I find the exact color that is used? When I go into the Control center and get the Appearance Preferences window, and then the Background tab, I see my color, but when I click on my background color next to Color: Solid color, I get a color selector that is positioned on a red color, while I want a blue color, so that is not the current one.

Retrieve data after formatting as well as change of format of the partation?

By mistake, I got my partition formatted. The partition’s file system format was changed from ext4 to NTFS.

I tried to retrieve the data using ‘testdisk’, it’s showing that the partition had been damaged.

Can’t open filesystem. Filesystem seems damaged.

Is there any way to retrieve the data?