Loading Bitmap Failed on Berlin


I have a problem migrating a process from XE8 to Berlin 10.1.

On XE8, it works fine.

On Berlin, I get a “Loading Bitmap Failed” error.

I have a DataSnap REST server with this method:

function TSM.Downloafile(): TStream;
s: TFileStream;
s := TFileStream.Create(‘C:\image1.jpg’, fmOpenReadWrite);
Result := s;

On XE8, I get the stream fine, I can see the image using a URL in a browser, like:


On Berlin, when I try to show the image, I get this string instead:


And then loading of the Bitmap fails.

Comments are closed.