title: How to handle raw jpeg data
body: <p>I have JPG data retrieved by web-request. Also, in "buf" there are same bytes as in JPG file. I want to load this data in TStream or even better in TBitmap. </p>
  
  <pre><code>// here are JPG data from http request in string property "UnparsedParams"
  buf:=PChar(ARequestInfo.UnparsedParams); 
  stream:=TMemoryStream.Create;
  
  // now I will save it into local file
  stream.Write(Buf^, length(ARequestInfo.UnparsedParams));
  stream.SaveToFile(sFile);
  stream.Free;
  
  // and now I will load jpg-image from file 
  img.imageName:=sFile;
  img.Picture.SaveToFile(sFile);
  
  // and now once again will load in dll's procedure to work something with picture
  mydll.ReadFromFile(sFile,0);
  // ...and I want to use method "ReadFromMemFile" that handle in-memory data
  mydll.ReadFromMemFile(&lt;OleVariant&gt;, &lt;Size&gt;, &lt;zero&gt;);
  // ...or maybe better method ReadFromBitmap that handle with Bitmap's handle
  mydll.ReadFromBitmap(&lt;bitmap handle&gt; &lt;zero&gt;);
  </code></pre>