title: Export varbinary to JSON File
body: <p>Database table has stored document in varbinary.</p>
  
  <p>So i can get in byte[] in C# code.</p>
  
  <p>Now How can i export this byte[] JSON file field.</p>
  
  <pre><code>if (item.IS_VIDEO == 0)
  {
      var content = ctx.DOCUMENT_TABLE.First(a =&gt; a.document_id == item.document_id).DOCUMENT_CONTENT;
      if (content != null)
      {
          publicationClass.document_content = System.Text.Encoding.Default.GetString(content); //for export to json field
      }
  }
  </code></pre>
  
  <p>is this a way to export byte[] file to JSON?</p>