I have a little problem: I'm writing to response content of the file and return it to the client as an ajax response.
But there occurs html substitution: of > to > ...
May i know how to handle / read the response with "Transfer-Encoding:chunked"?
Currently im using common-httpclient.3.1
My current coding as followings (can handle response with content-length in header only) :-
Below is the code:
Resource resource = getResource(request, requestUrl, userInfo, objectIdParam,
rootFolderId, pathInfo, overrideCharset, isThumbnailResource);
// New line added to change Content-Disposition
response.setHeader( "Content-Disposition", "attachment;filename=" + pathInfo ...