XStream
  1. XStream
  2. XSTR-491

Bufferedimage not deserializing when streams are used

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.3
    • Fix Version/s: 1.x Maintenance
    • Component/s: None
    • Labels:
      None

      Description

      I have a class which encapsulates a BufferedImage and I have overriden
      > the read/writeObject methods as such:
      >
      > private void writeObject(java.io.ObjectOutputStream out)
      > throws IOException
      >

      { > ImageIO.write(image, "PNG", out); > }

      >
      > private void readObject(java.io.ObjectInputStream in) throws
      > IOException,
      > ClassNotFoundException

      { > > setImage(ImageIO.read(in)); > }

      >
      > The xml produce by calling writeObject is well formed, it can be found
      > below.
      >
      > The issue that I have is the the stream that is passed into readObject
      > is empty.

        People

        • Assignee:
          Jörg Schaible
          Reporter:
          Jon Little
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: