Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4393174

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: