-
Jun 6th, 2012, 01:49 AM
#1
Downloading a file using spring multipart
I am a beginner in spring mvc. In my project I have a requirement to download a content from multipart form using spring.
I found a number of examples for file upload but there is nothing related to download except MultipartAwareFormHttpMessageConverter
Can anybody tell me how to use this class.
-
Jun 6th, 2012, 04:11 AM
#2
Ehrm not sure what you mean, but downloading is nothing more than streaming somethinig directly to the response, set the appropriate content type etc. There are numerous samples around the web for that. So not sure what that has to do with multipart forms etc...
-
Jun 6th, 2012, 04:22 AM
#3
Actually application is recording user's talk over phone and passing these databytes to my controller as multipart/form-data in request. Requirement is to extract these databytes and write it into file system.
Is this possible using spring multiparts?
-
Jun 6th, 2012, 04:27 AM
#4
Which is UPLOAD not DOWNLOAD... So use the documented solutions as described elsewhere and which you already found. Simply write the received file to disk...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules