title: How to upload a ImageView to webservice in android?
body: <p>I have a Image view in xml as follows.</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>And in this imageview I am creating a qr code. And I want to send it to werservice.</p>
  
  <pre><code>public class GenerateQrcode extends ActivityGroup{
      String id;
      ImageView image;
       Bitmap bm;
       Button qrusers,qrinvites,qrback;
       @Override
      public void onBackPressed() {
          // TODO Auto-generated method stub
  
      }
      @Override
      protected void onCreate(Bundle savedInstanceState) {
          // TODO Auto-generated method stub
          super.onCreate(savedInstanceState);
          setContentView(R.layout.qrcode);
  
       image = (ImageView) findViewById(R.id.qrcode);
  </code></pre>
  
  <p>I have generated qr code using zxing library and assigned that qr code image to above imageview.</p>
  
  <p>So inside image I have the qr code. How to send this image to webservice.</p>