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.
0
Comments
Categories
- All Categories
- 108 Developer Announcements
- 53 Articles
- 106 General Questions
- 145 IM Services
- 43 OpenText Hackathon
- 32 Developer Tools
- 20.6K Analytics
- 4.1K AppWorks
- 8.9K Extended ECM
- 899 Cloud Fax and Notifications
- 77 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 120 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
TeamSite Developer Resources
If you are interested in gaining full access to the content, you can register for a My Support account here.
- Docker Automation
- LiveSite Content Services (LSCS) REST API
- Single Page Application (SPA) Modules
- TeamSite Add-ons
If you are interested in gaining full access to the content, you can register for a My Support account here.