On April 27, 2024, our Sign-in and Create Account options will be unavailable from 9am-12pm ET. During this maintenance window, developer account access and free trial registration will be unavailable.
Binary file output via LiveSite AJAX component
I was hoping to be able to return a binary response (file) via the AjaxOutput option of a LiveSite component, specifically by directly writing to the HttpServletResponse (headers and output stream). Unfortunately, this generates an error "getWriter() has already been called for this response" - likely due to how the doOutputAjax **method in **com.interwoven.livesite.runtime.rendering.RenderingManager opens the PrintWriter **prior to executing the **ExternalAjaxOutputGenerator. I did try the HttpServletResponse.reset() option, but it doesn't seem to fix the issue.
My questions are:
- has anyone done this in TeamSite/LiveSite before, and
- is there any easy/alternative way I should be doing this?
This is using TeamSite 7.4.1.3.0.
Categories
- All Categories
- Cloud Editions
- 1 Thrust Services
- cat as link
- 1 Core SaaS Application development
- 10 Developer Announcements
- 15 General Questions
- 33.4K TeamSite
- 141 Application Governance & Archiving
- 15.2K Designing Analytics Reports
- 1K DevShare Downloads
- Core SaaS Applications
- nested parent
- 4.3K Developing Analytics Applications
- 8.8K Documentum Developer Forum
- Media Management developer
- 159 Transactional Content Processing (TCP)
- 1.7K Web Experience Management
- 55 Tempo Social
- 1 XM Fax