title: How can I convert a REG_BINARY value from the registry into a string ? (vb.net)
body: <p>I have a registry value which is stored as a binary value (REG_BINARY) holding information about a filepath. The value is read out into an byte array. But how can I transform it into a readable string?</p>
  
  <p>I have read about system.text.encoding.ASCII.GetString(value) but this does not work. As far as I got to know the registry value is arbitrary binary data and not ASCII which is the reason for the method to produce useless data.</p>
  
  <p>Does anybody know how I can convert the data? </p>
  
  <p>Sample:
  (A piece of the entry)</p>
  
  <pre><code>01 00 00 00 94 00 00 00 14 00 00 00 63 00 3A 00 5C 00 
  70 00 72 00 6F 00 67 00 72 00 61 00 6D 00 6d 00 65 00 
  5C 00 67 00 65 00 6D 00 65 00 69 00 6E 00 73 00 61 00 
  6D 00 65 00 20 00 64 00 61 00 74 00 65 00 69 00 65 00 
  6E 00 5C
  </code></pre>
  
  <p>Due to the regedit this is supposed to be:</p>
  
  <pre><code>............c.:.\.p.r.o.g.r.a.m.m.e.\.g.e.m.e.i.n.s.a.m.e. .d.a.t.e.i.e.n.\
  </code></pre>
  
  <p>The entry itself was created from Outlook. It's an entry for an disabled addin item (resiliency)</p>