如何使用没有编码的多部分凌空?

I am using volley for image uploading from server. I tried with async task it works but I want to do with it using volley and I want solution for multipart using volley and without using encoded.

you can upload to your server using multipartrequest

String url = "YOUR POST URL";
HashMap<String, String> params = new HashMap<String, String>();
params.put("your_extra_params", "value");

Edit: //String image_path = "your local image path";

Update: //File part

Map<String, File> mFilePartData= new HashMap<>();
mFilePartData.put("file", new File(mFilePath));
mFilePartData.put("file", new File(mFilePath));



MultipartRequest multipartRequest =

        new MultipartRequest(url, params, mFilePartData, new Response.Listener<String>() {
            @Override
            public void onResponse(String response) {
                Log.e(TAG, "Success Response: " + response.toString());

            }
        }, new Response.ErrorListener() {

            @Override
            public void onErrorResponse(VolleyError error) {

                if (error.networkResponse != null) {
                    Log.e(TAG, "Error Response code: " +
                            error.networkResponse.statusCode);

            }
        });

requestQueue.add(multipartRequest);