How is it possible to upload large files with Volley? ( Android )

Read this: Volley Issue

From the link: "It[volley] inherently requires that the full request/response be storable in memory, and for video uploads it makes far more sense to stream them incrementally over the network from another source (i.e. disk), to support resume of partial uploads, etc, in a way that Volley's API inherently doesn't support."


Volley has some known issues with large file uplaod.

Use multipart file upload for large files, for instance (with retrofit):

public interface FileUploadService {

    @Multipart
    @POST("/upload")
    void upload(@Part("myfile") TypedFile file,
                @Part("description") String description,
                Callback<String> cb);
}

For your reference : https://futurestud.io/blog/retrofit-how-to-upload-files/