title: Get PicturePath selected from gallery to store it in dataBase
body: <p>I used this code to upload image from gallery .it works perfectly..but the problem is that i wanna get the Image's path to store it in wamp dataBase ..`</p>
  
  <pre><code>public class Image extends Activity {
  ImageView contact;
  
  @Override
  protected void onCreate(Bundle savedInstanceState) {
      super.onCreate(savedInstanceState);
      setContentView(R.layout.activity_image);
  
  
      contact = (ImageView) findViewById(R.id.candidat);
      contact.setOnClickListener(new View.OnClickListener() {
  
          @Override
          public void onClick(View v) {
              Intent intent = new Intent();
              intent.setType("image/*");
              intent.setAction(Intent.ACTION_GET_CONTENT);
              startActivityForResult(Intent.createChooser(intent, "Select     Contact Image"), 1);
  
  
          }
      });
  }
  
  public void onActivityResult(int reqCode, int resCode, Intent data) {
  
  
      if (resCode == RESULT_OK) {
  
          if (reqCode == 1)
              contact.setImageURI(data.getData());
  
  
      }
  
  
  }
     } 
  </code></pre>
  
  <p>Thank you for help</p>