
In order to manage files Upload and Download we will be using the core JAX-RS API and Rest Easy implementation, along with IOUtil class from Apache Commons IO library.

To get started we recommend this tutorial: RESTEasy tutorial Uploading and Downloading files using a REST Service On the top of that, we will show how to build a JUnit Test to test files uploading using RESTEasy Client API. We will demonstrate with a rest service sample how to upload and download files using JAX-RS API with different front ends (AngularJS and JSP). If this is not the right forum, could the moderator please provide a link? Thanks you.This rest service tutorial is a quick guide for handling files upload and download using REST Services. If you dont have ID, URL, and API Key please follow the requests here. Set your environment configuration: Make sure to add your API Key variables: authid ID. PS: This post had been previously moved to a forum that tells you which forum to move the post to without actually giving you a link. Download the zip file attached at the bottom of this post. Please help me figure out what I am missing or doing wrong. If you plan on using the File Staging API, you will still be making one call per document, but the File Staging API allows you to download large files in chunks and will support up to 10 simultaneous downloads where we dont recommend you multi-thread the single document API. Return BadRequest("Number of files must be greater than zero (0)!") Var response = new HttpResponseMessage() Var fileContent = new StreamContent(new FileStream(f.FullName, FileMode.Open)) į = .MediaTypeHeaderValue.Parse("text/plain") į = new .ContentDispositionHeaderValue("attachment") Var objectContent = new StringContent((fi.Select(f => f.FullName))) Public ActionResult GetFiles(int results) The code works.but in Postman I receive an OK status but the body of the response is empty. However, I am trying to implement an alternative solution where the files are added to a multipart content then to the

In Postman I am able to download the zip file.

I have written code to upload multiple files through one zip file and it works.
