title: how to upload multimedia files into azure from android application
body: <p>Is there any way i can upload multimedia files such as audio from my voice recorder OR photo from my camera function from my android application into Microsoft Azure?</p>
  
  <p>I looked at all the tutorial given such as server and client side and inserted the code into my project. But how exactly do i upload them through a "send" button on the application?</p>
  
  <p>Please advice. Below is my codes for my basic camera application</p>
  
  <pre><code>package com.example.testproject;
  
  import android.app.Activity;
  import android.content.Intent;
  import android.graphics.Bitmap;
  import android.os.Bundle;
  import android.view.View;
  import android.view.View.OnClickListener;
  import android.widget.Button;
  import android.widget.ImageView;
  
  public class Camera extends Activity{
  
  ImageView iv;
  
  public void onCreate(Bundle savedInstanceState){
  super.onCreate(savedInstanceState);
  setContentView(R.layout.camera);
  
  
  iv = (ImageView) findViewById(R.id.imageView1);
  Button btn = (Button) findViewById(R.id.btnPhoto);
  btn.setOnClickListener(new OnClickListener(){
  
      public void onClick(View v){
          Intent intent = new Intent(android.provider.MediaStore.ACTION_IMAGE_CAPTURE);
          startActivityForResult(intent, 0);
      }
  });
  
  }
  
  protected void onActivityResult(int requestCode, int resultCode, Intent data)
  {
  if(requestCode == 0)
  {
      Bitmap theImage = (Bitmap) data.getExtras().get("data");
      iv.setImageBitmap(theImage);
  }
  }
  
   }
  </code></pre>