Uploaded image for project: 'Chemistry (Retired)'
  1. Chemistry (Retired)
  2. CMIS-444

The InputStream returned by "ContentStream.getStream()" is read ONE byte at a time!

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • OpenCMIS 0.5.0
    • OpenCMIS 0.6.0
    • opencmis-client
    • None
    • java version "1.6.0_27", Linux Fedora 15, latest version of openCMIS (0.5.0)

    Description

      • The InputStream "org.apache.chemistry.opencmis.commons.data.ContentStream.getStream()" is read one byte at a time. The other read(byte[], ...) methods are not called.
      • This affects the performance of the client when uploading files to the DMS server (by the help of openCMIS) if the code that provides the InputStream doesn't uses a buffer! The code can be improved to use the methods that read more than one byte a time or the documentation should be improved in order to inform the developer of this way of reading the InputStream

      Attachments

        1. testOpenCmis_01.zip
          182 kB
          Ioan LUPU

        Activity

          People

            fmui Florian Müller
            alv131 Ioan LUPU
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: