title: How to convert a JSON string to an image?
body: <p>I have an application that converts an image to a JSON array and I'm saving it into a blob field:</p>
  
  <pre><code>function getImage(): String;
  var
    memorystream : TMemoryStream;
    jsonArray    : TJSONArray;
  
  begin
    memorystream := TMemoryStream.Create;
    myImage.Picture.Graphic.SaveToStream(memorystream);
    memorystream.Position := 0;
  
    jsonArray := TJSONArray.Create;
    jsonArray := TDBXJSONTools.StreamToJSON(memorystream, 0, memorystream.Size);
  
    memorystream.Free;
  
    Result := jsonArray.ToString;
  end;
  </code></pre>
  
  <p>The result of the convertion of a PNG image looks like this:</p>
  
  <pre><code>[137,80,78,71,13,10,26,10,0,0, ... ]
  </code></pre>
  
  <p>This result is stored in a blob field that I get back with this code:</p>
  
  <pre><code>stream := TStream.Create;
  stream := cdsPesquisa.CreateBlobStream(fieldAux, bmRead);
  stream.Position := 0;
  
  jsonArray := TJSONArray.Create;
  jsonArray := TDBXJSONTools.StreamToJSON(stream, 0, stream.Size);
  </code></pre>
  
  <p>Here, I have the same JSON string <code>[137,80,78,71,13,10,26,10,0,0, ... ]</code> at the beginning, but I need to convert this JSON array into an image again.</p>
  
  <p>How can I achieve that?</p>