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

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

On XE8 work fine on Berlin a get a "Loading Bitmap Failed" error

i have a Datasnap Rest server with a 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 browser

http://localhost:105/datasnap/rest/TSM/Downloafile

on Berlin when i try show the image i get this string [122,216,255,244,0,15,......]

Loading Bitmap Failed

Comments

  1. same error, this code work fine on XE8 fail on Berlin

    ReplyDelete
  2. Post source code of a small reproducible example that builds and compiles. Then add the bitmap and tell us the exact error you get. That might get you further.

    ReplyDelete
  3. i have resolved this case using ?json=false in the URL, thanks

    ReplyDelete

Post a Comment