I am working in application in which I want user to select multiple and convert them to base64, so that I can sent it to server. Is it possibile to select multiple images from gallery and then convert them to base64 and then send it to server
            Intent intent = new Intent();
            intent.setType("*/*");
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN_MR2) {
                intent.putExtra(Intent.EXTRA_ALLOW_MULTIPLE, true);
            }
            intent.setAction(Intent.ACTION_GET_CONTENT);
            startActivityForResult(Intent.createChooser(intent, "android.intent.action.SEND_MULTIPLE"), SELECT_PICTURE);
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
    // TODO Auto-generated method stub
    if (requestCode == SELECT_PICTURE) {
        if (resultCode == RESULT_OK) {
            //data.getParcelableArrayExtra(name);
            //If Single image selected then it will fetch from Gallery
            filePath = data.getData();
                filePath = data.getData();
                if (null != filePath) {
                    try {
                        bitmap = MediaStore.Images.Media.getBitmap(this.getContentResolver(), filePath);
                      //  img.setImageBitmap(bitmap);
                        if (filePath.getScheme().equals("content")) {
                            Cursor cursor = getContentResolver().query(filePath, null, null, null, null);
                            try {
                                if (cursor != null && cursor.moveToFirst()) {
                                    file_name = cursor.getString(cursor.getColumnIndex(OpenableColumns.DISPLAY_NAME));
                                   // text.setText(file_name+",");
                                    img_name.add(file_name);
                                    img_pic.add(getStringImage(bitmap));
                                    //      Toast.makeText(this, "1." + file_name, Toast.LENGTH_SHORT).show();
                                }
                            } finally {
                                cursor.close();
                            }
                        } else {
                            String path = data.getData().getPath();
                            file_name = path.substring(path.lastIndexOf("/") + 1);
                           // text.setText(file_name);
                            img_name.add(file_name);
                            img_pic.add(getStringImage(bitmap));
                            //Toast.makeText(this, "2." + file_name, Toast.LENGTH_SHORT).show();
                        }
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
 
    