[Progress Communities] [Progress OpenEdge ABL] Forum Post: RE: PASOE/REST/DOH - File Download

  • Thread starter Thread starter Peter Judge
  • Start date Start date
Status
Not open for further replies.
P

Peter Judge

Guest
Hi Louis, I’ve added an example at github.com/.../doh_named_file . There are three examples in the code of how you can return the header and data. One returns a FileInputStream object, which I’d suggest since it has both the file contents and its name (which the Memptr does not). I’m thinking about options for how to make it possible for you not to have to return the header manually. So you’d just return the image object from you ABL code. If you care to read more about the Content-Disposition header, per developer.mozilla.org/.../Content-Disposition , there are basically 2 parameters you can pass: inline and attachment. The latter is the ‘download’ option.

Continue reading...
 
Status
Not open for further replies.
Back
Top