-
Type: Bug
-
Status: Resolved
-
Priority: Major
-
Resolution: Not a Bug
-
Affects Version/s: 1.3.0
-
Fix Version/s: None
-
Component/s: awpr-liferay-portal
-
Labels:None
-
Environment:Alfresco labs 3.0 Lifreray portal 5.2.3 Star 1.3
AWPr is dispalying junk characters(binary data)in aportlet instead of image for alfresco webscript returning binary data
Scrpit executed is alfresco webscript for Content Retrival(getContent)
Content Retrieval (getContent) GET /alfresco/service/api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/path/content{property}/{store_type}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/avmpath/content{property}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?}
GET /alfresco/service/api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?}
Notes:
Some CMIS protocol bindings MAY choose not to explicitly implement a "getContentStream" method, in cases where the protocol itself provides built-in mechanisms for retrieving byte streams. (E.g. in the ATOM/REST binding, content streams may be retrieved via standard HTTP gets on an "edit-media" URL, rather than a CMIS-specific "getContentStream" URL). See Part II of the CMIS specification for additional details.
when we open bmp and jpeg conent from alfresco it explorer displays image properly but in awpr it displays junk character
We tried setting the mime type response on servlet but still we get binary junk charcters since a it is enclosed by div tag
Scrpit executed is alfresco webscript for Content Retrival(getContent)
Content Retrieval (getContent) GET /alfresco/service/api/node/content{property}/{store_type}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/path/content{property}/{store_type}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/avmpath/content{property}/{store_id}/{id}?a={attach?}
GET /alfresco/service/api/node/{store_type}/{store_id}/{id}/content{property}?a={attach?}
GET /alfresco/service/api/path/{store_type}/{store_id}/{id}/content{property}?a={attach?}
Notes:
Some CMIS protocol bindings MAY choose not to explicitly implement a "getContentStream" method, in cases where the protocol itself provides built-in mechanisms for retrieving byte streams. (E.g. in the ATOM/REST binding, content streams may be retrieved via standard HTTP gets on an "edit-media" URL, rather than a CMIS-specific "getContentStream" URL). See Part II of the CMIS specification for additional details.
when we open bmp and jpeg conent from alfresco it explorer displays image properly but in awpr it displays junk character
We tried setting the mime type response on servlet but still we get binary junk charcters since a it is enclosed by div tag