Uploaded image for project: 'Spatial Information Systems'
  1. Spatial Information Systems
  2. SIS-308

InputStream provided by StorageConnector not always at the beginning of the stream

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.3, 0.4, 0.5, 0.6
    • 0.7
    • Storage
    • None

    Description

      Call to StorageConnector.getStorageAs(InputStream.class) returns an InputStream which does not read from the beginning of the stream if a call to StorageConnection.getStorageAs(…) has been done before for another type.

      The fix is to use InputStream.mark() when the other type is created and InputStream.reset() when the InputStream is requested.

      Attachments

        Activity

          People

            desruisseaux Martin Desruisseaux
            desruisseaux Martin Desruisseaux
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: