

HOW TO GET PDF FILE ZIP
Add any sample pdf, word, excel, zip (name them as sample) files into it.Create Book folder at root level in the project.Open Visual Studio and create New Web API project.Please follow the below steps to create the file transferrable Web API service. I have attached only required files with the actual folder structure (due to the size of the project).
HOW TO GET PDF FILE HOW TO
How to execute the attached source code (Please go through this section if you want to practice this article with the attached project)


HttpResponseMessage httpResponseMessage.public class eBookResult : IHttpActionResult.= new .MediaTypeHeaderValue( "application/octet-stream" ).= new .ContentDispositionHeaderValue( "attachment" ).httpResponseMessage.Content = new StreamContent(dataStream).HttpResponseMessage httpResponseMessage = Request.CreateResponse(HttpStatusCode.OK).public HttpResponseMessage GetBookForHRM(string format).return new eBookResult(dataStream, Request, bookName).var dataStream = new MemoryStream(dataBytes).Thus you could successfully recover deleted PDF files. Select all the PDF files you need to recover > click the Recycle button. Start Control Panel > System and Security. var dataBytes = File.ReadAllBytes(reqBook) To use this tool, the File History must have been On in advance.string bookName = "sample." + format.ToLower().For Save As Type (Windows) or Format (Mac OS), choose Adobe PDF, and then click. string reqBook = format.ToLower() = "pdf" ? bookPath_Pdf : (format.ToLower() = "xls" ? bookPath_xls : (format.ToLower() = "doc" ? bookPath_doc : bookPath_zip)) Specify a name and location for the file.public IHttpActionResult GetbookFor(string format)."C:\MyWorkSpace\SelfDev\UserAPI\UserAPI\Books\sample.zip"."C:\MyWorkSpace\SelfDev\UserAPI\UserAPI\Books\sample.doc"."C:\MyWorkSpace\SelfDev\UserAPI\UserAPI\Books\sample.xls"."C:\MyWorkSpace\SelfDev\UserAPI\UserAPI\Books\sample.pdf".public class EbookController : ApiController.
