"Length of stream must be greater than 0." error when pasting images

XMLWordPrintable

    • 1
    • Severity 3 - Minor

      Description

      When we try to copy an image from Windows Photo Viewer and then paste that image in Confluence, sometimes it throws an error:

      Environment

      • Windows 10
      • Confluence 6.0.3
      • Firefox 50.1.0
      • Windows Photo Viewer

      Steps to reproduce:

      1. Open an image on Windows photo viewer;
      2. Right-click -> Copy;
      3. Open a Confluence page in edit mode;
      4. Right-click -> Paste;

      Expected result:
      The image is attached properly.

      Actual Result
      "Length of stream must be greater than 0."

      Workaround
      Use Google Chrome;

      or

      1. Paste and save the image with any image editor;
      2. Attach the file itself rather than a selection (via drag and drop, Insert Files button, etc);

        1. pastedImage.png
          6 kB
          Lucas Machado

              Assignee:
              Unassigned
              Reporter:
              Lucas Machado (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

                Created:
                Updated:
                Resolved: