Win a copy of Kotlin in Action this week in the Kotlin forum!
    Bookmark Topic Watch Topic
  • New Topic

file from response object  RSS feed

 
jacob deiter
Ranch Hand
Posts: 587
  • Mark post as helpful
  • send pies
  • Report post to moderator
I want to send a PDF file to browser, for that I have a utility class which set the file in response object.
Now my expectation here is, retrieve the file from response object and write the file in desired location.
 
Schandha Ravi
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Report post to moderator
I believe, since the File Object can be retrieved from your response, you can open a Bytestream to that file and read the contents. Did you try this?
 
Amit Ghorpade
Bartender
Posts: 2856
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question multiple times.It only wastes the useful time of other ranchers and reduces the number of responses you get. Read this for more information.

I am closing this one for you and we will continue the discussion in http://www.coderanch.com/t/445847/Servlets/java/read-file-from-response-object
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!