We have several solutions imported in Servoy 5.2.2. In some of them, we used this simple method to display images on a web server:
pathfile = 'http://X.Y.Z.J/Image.jpg'
var imgTemp = plugins.http.getMediaData(pathfile);
globals.testImg = imgTemp;
If we show the form that contains the global field the image is not displayed. In debugging, however, we verified that the field actually contains the bytes of the image. We also verified that this behavior does not occur with the real fields to Database.