ImageIO.write(RenderedImage, String, File) leaves old file contents around

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.4.0
    • Affects Version/s: 1.0
    • Component/s: client-libs
    • None
    • beta
    • generic
    • solaris_7
    • Verified

      Calling ImageIO.write(RenderedImage im, String formatName, File output)
      writes image data to the named file, starting at offset 0. However, if
      the file existed prior to the call, and was longer than the data to be written,
      the file contents subsequent to the newly written data will still be present.

      A regression test will be placed in test/javax/imageio/ImageIOWriteFile.java.

            Assignee:
            Daniel Rice (Inactive)
            Reporter:
            Daniel Rice (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: