xWebClient PDF

I have a xDataServer that return a PDF file in TStream in one endpoint
in TMS Web Core how to get this TStream and show de PDF file in the browser?

I am using this peace of code
  XDataClient.RawInvoke(
    'IVendaService.'+EndPoint, [JSConsultarVenda],
    @OnLoad, @OnError
);

Any suggestion are welcome.
Thanks in advanced,
Ageu

Hello Ageu, 

On easy and straightforward way is to make the PDF available from a GET command, this way you can directly make the browser point to the PDF URL and it will download and display it normally.