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;
var
s: TFileStream;
begin
s := TFileStream.Create('C:\image1.jpg', fmOpenReadWrite);
Result := s;
end;
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:
[122,216,255,244,0,15,......]
And then loading of the Bitmap fails.
i have resolved this case using ?json=false in the URL, thanks