Hi,
I have an application that downloads images from a webroker app and this was working fine on Delphi Seattle, but when i tried to port it to Berlin, now i get an error.
"REST request failed: No mapping for the Unicode character exists in target multi-byte code page"
{Client side} JpegFile:=ExtractFilePath(ParamStr(0)+'badge.jpg'); LRestRequest.Timeout := 10000; LRestRequest.Params.Clear; LRestRequest.Resource:='GetImage'; LRestRequest.AddParameter('username','USR'); LRestRequest.AddParameter('password','PWD'); LRestRequest.AddParameter('EventID','E0000x'); LRestRequest.AddParameter('PhotoName','_Badge'); LRestRequest.Execute; if LRestResponse.StatusCode = 200 then begin FileStream:=TFileStream.Create(JpegFile, fmCreate or fmOpenWrite); try FileStream.WriteData(LRestResponse.RawBytes, Length(LRestResponse.RawBytes)); finally FileStream.DisposeOf; end; end; {Server side} var Image:String; begin Image:=ExtractFilePath(ParamStr(0)) + 'TestImage.jpg'; if FileExists(Image) then begin Response.ContentType:='image/jpg'; Response.ContentStream:=TFileStream.Create(Image ,fmOpenRead or fmShareDenyNone ); end else Response.StatusCode:=404;
is there any fix this?
Thanks
Mauricio Herrera