论坛

主页 » Liferay Portal » English » 3. Development

组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
Vipul Dave
Chunked response with MessageBoard attachment.
2012年4月18日 上午8:40
答复

Vipul Dave

等级: New Member

帖子: 1

加入日期: 2011年2月7日

最近的帖子

Hiya,

I am using message board and attaching video file to thread MBMessage.
Here is sample URL how I am retrieving attachment item :
http://localhost:8080/c/message_boards/get_message_attachment?messageId=15806&attachment=Manamana.flv

I am able to download the video with that URL. But I need to play that video with JWPlayer inline.
Since the response from GetMessageAttachmentAction.java->StringServletResponse.java, has "Transfer-encoding : chunked", I am not able to play the video with player.
Is there any alternate URL to retrieve MBMessage attachment ? or anyway I can avoid chunked response?

The Videos from document library are served thru "AbsoluteRedirectsResponse.java", those works fine with player, since it doesn't have chunked response. For example : localhost:8080/documents/10157/0/Abc.flv


Thanks,
Vipul Dave