title: Spring: inject byte array into ArrayList
body: <p>what is the correct way of injecting a byte array into an arraylist?</p>
  
  <pre><code>private ArrayList&lt;byte[]&gt; bytes;
  
  &lt;property name="bytes"&gt;
  &lt;list&gt;
      &lt;value&gt;0x03,0x4d&lt;/value&gt;
  &lt;/list&gt;
  &lt;/property&gt;
  </code></pre>
  
  <p>does not work, as every character (0,x,0,3) is converted into a single byte.
  I also tried encoding like &amp;#03;, but that doesn't work either.</p>
  
  <p>One workaround would be converting to integer first an then manually convert back to byte in the bean, but that is not too pretty.</p>
  
  <p>Any idea?</p>
  
  <p>Regards</p>