Uploaded image for project: 'Alfresco Web script Portlet rivet'
  1. Alfresco Web script Portlet rivet
  2. AWPR-4

AWPr is dispalying junk characters(binary data)in aportlet instead of image for alfresco webscript returning binary data

    XMLWordPrintable

    Details

    • 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

      Description

      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



       

        Attachments

        1. awprimage.bmp
          2.25 MB
        2. exporer.bmp
          2.25 MB

          Activity

            People

            • Assignee:
              aelnattar Al El-Nattar
              Reporter:
              nilendra nilendra
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Resolution Date:

                Zendesk Support