I am trying to expose data from my WIX database by creating an http request. I tried it on Postman and the data from the database is available for other platforms. However, it seems images can´t be used (or are at least not seen) when the request is made.
We are trying to use the database content for our mobile app. This is the response we are getting through Postman:
{ "_id": "a10bd36a-2d38-46cf-810d-8cf8fad1fbb1", "_owner": "c43426ea-e213-41a5-a25a-41c0a97c5568", "_createdDate": "2021-06-16T13:57:36.569Z", "_updatedDate": "2021-07-17T10:04:27.576Z", "regionReference": "77c16c2f-0564-47f2-ad44-6f6c6a60cbd2", "creator": "Sarah Wils", "blogReference": "60df174a9e5cdd00155ec7b8", "title": "\"Die Ruhe und die Atmospähre waren einmalig.\"", "mainImage": "wix:image://v1/c43426_fc57143a3a5f4f649d42c81a383f26c7~mv2.jpg/roberto-nickson-7BjmDICVloE-unsplash.jpg#originWidth=5472&originHeight=3648", "link-stories-title": "/stories/%22die-ruhe-und-die-atmosp%C3%A4hre-waren-einmalig.%22", "link-stories-all": "/stories/" },
The request gives this image link on "mainImage" that cant be used by the app; the picture won´t show up. When i open the live website and open the same image in a new tab, this link appears in the URL bar:
Does it have to be the same in the code when the request is made or does it depend on the way the image is accessed through the code from our app?
i still have the same problem. anyone got a good answer yet?