ich habs folgendermaßen gelöst:
Delphi-Quellcode:
function TRemoteController.ConvertObjecttoBitmap(data : TObject):Bitmap;
var
ms : MemoryStream;
preview : Bitmap;
byteArray : TBytes;
i: Integer;
begin
try
byteArray := TBytes(Data);
ms:= MemoryStream.Create(byteArray);
ms.set_Position(0);
preview:=Bitmap.Create(ms);
ms.Free;
result := preview;
except
raise EBitmapConvertionException.Create();
end;
end;