How to display a byte array image from model when its null?
<p>I want to leave as null or show as an image if that byte array image existing in DB column. </p>

<p>Currently I'm showing its like this</p>

<pre><code>&lt;img src="data:image;base64,@System.Convert.ToBase64String(Model.ProfilePicture)" width="80" height="80" /&gt;
</code></pre>

<p>but when this <code>Model.ProfilePicture</code> null I'm getting error like following</p>

<blockquote>
  <p>Value cannot be null. Parameter name: inArray</p>
</blockquote>