title: Read MemoryStream - load image \ byte and read it
body: <p>ok i have image that i bind info in it and i want to read the info </p>
  
  <p>now from file (FileStream) its work</p>
  
  <p>but i want to do it not from file so i need to use MemoryStream</p>
  
  <p>here the example that work and how i do it now how i make it work with MemoryStream (with byte = My.Resources or PictureBox1.image)</p>
  
  <pre><code>Using FS As New IO.FileStream(image, IO.FileMode.Open)
              FS.Seek(0, IO.SeekOrigin.End)
              While Not FS.ReadByte = Asc("|")
                  FS.Position -= 2
              End While
              Dim s As String = Nothing
              While Not FS.Position = FS.Length - 4
                  s &amp;= Chr(FS.ReadByte.ToString)
              End While
              Dim Ext As String = Nothing
              FS.Seek(0, IO.SeekOrigin.End)
              While Not FS.ReadByte = Asc("*")
                  FS.Position -= 2
              End While
              While Not FS.Position = FS.Length
                  Ext &amp;= Chr(FS.ReadByte.ToString)
              End While
              FS.Seek(FS.Length - ((s.Length + s) + 5), IO.SeekOrigin.Begin)
  
              While Not FS.Position = FS.Length - (s.Length + 5)
  
                  Dim Data As Byte() = New Byte(FS.Position) {}
                  FS.Read(Data, 0, Data.Length)
                  FS.Close()
  
              End While
  </code></pre>
  
  <p>at the end save the byte to file</p>
  
  <p>i try to use it like this</p>
  
  <p>Using FS As New IO.MemoryStream(image) 'image = byte()</p>
  
  <p>but not work</p>
  
  <p>how i can do it read it again in memory</p>
  
  <p>thanks</p>