title: Convert ImageView in bytes android?
body: <p>I have a ImageView,to which I am assigning a qr code which I have generated using zxing library.</p>
  
  <pre><code> &lt;ImageView
          android:id="@+id/qrcode"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:layout_marginBottom="15dp"
          android:layout_marginTop="86dp" /&gt;
  </code></pre>
  
  <p>This is my imageview and I want to convert this ImageView in bytes first and then to bytearray. HOw can I achieve this?</p>