title: Decode base64 to image in vb.net
body: <p>I've been searching on the internet and have not found an answer. Would you like to tell me, how to decode from <code>base64</code> to be <code>Image</code> like line graph? I've been trying to convert from <code>base64</code> to <code>Byte</code> array first and from <code>Byte</code> array to <code>Image</code>.</p>
  
  <pre><code>Private Function convertbytetoimage(ByVal BA As Byte())
       Dim ms As MemoryStream = New MemoryStream(BA)
       image = Image.FromStream(ms) 'I always get wrong in this line.
       Return image
   End Function
  </code></pre>