artembilan / si-http-download-excel-sample Goto Github PK
View Code? Open in Web Editor NEWDemostates HTTP-download XLS File as byte[] using Spring Integration
Demostates HTTP-download XLS File as byte[] using Spring Integration
Sample demonstrates Web Application with one functionality: Excel file downloading as byte[] and 'Content-Type' HTTP Response header with value 'application/vnd.ms-excel'. Server logic built on Spring Integration: 1. File is read from Classpath via org.springframework.core.io.ClassPathResource 2. Converted into byte[] via org.apache.commons.io.IOUtils 3. byte[] is placed as Message payload via <transformer> inside the <chain> 4. 'Content-Type' is added into MessageHeaders via <header-enricher> 5. HttpRequest is processed by <http:inbound-gateway> Build System is Gradle and applies 'jetty' plugin To test this sample it is enough to run Gradle task 'jettyRunWar'. Jetty Servlet-Container will be started on default port 8080. Application context-root is the same a project name. Important: only Microsoft IE can open Excel sheet immediately in the Browser window
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.