I'm new in android and I know how to post Strings using volley but now i want to send Strings with an Image! Now I selected an image from gallery but I can't post it
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode == request && resultCode == RESULT_OK && data!= null){
Uri uri = data.getData();
try {
bitmap= MediaStore.Images.Media.getBitmap(getContentResolver(),uri);
img.setImageBitmap(bitmap);
} catch (IOException e) {
e.printStackTrace();
}
}
}
void selectimg(){
Intent intent = new Intent();
intent.setType("image/*");
intent.setAction(Intent.ACTION_GET_CONTENT);
startActivityForResult(intent,request);
}