Announcement Announcement Module
Collapse
No announcement yet.
Downloading a file using spring multipart Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #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...

    Comment


    • #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?

      Comment


      • #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...

        Comment

        Working...
        X