title: Return an image from a Delphi REST server and show it in a browser
body: <p>When you return an image using a file stream object in a Delphi rest server, it will not display in a browser. Here is an example method that returns an image:</p>
  
  <pre><code>function TServerClass.Image: TFileStream;
  begin
    Result := TFileStream.Create('pathtofile\image.png', fmOpenRead or fmShareDenyNone);
  end;
  </code></pre>