Sending images from Wix database to an app through http request

I think the question is not clear enough.
Please describe what exactly you wish to achieve. Is the code you posted work for you? Are you storing the images in the collection as full urls or internal Wix URIs? What should be the json structure you wish to send etc…