picview/src/com/google/android/apps/picview/data/Photo.java
public byte[] convertToBytes() {
    try {
      ByteArrayOutputStream result = new ByteArrayOutputStream();
      ObjectOutputStream output = new ObjectOutputStream(result);
      output.writeObject(this);
      return result.toByteArray();
    } catch (IOException e) {
      e.printStackTrace();
    }
    return null;
  }
/**
   * Returns the serialized Photo object.
   */
Returns the serialized Photo object.
Returns the serialized Photo object .
public byte[] convertToBytes() {
    try {
      ByteArrayOutputStream result = new ByteArrayOutputStream();
      ObjectOutputStream output = new ObjectOutputStream(result);
      output.writeObject(this);
      return result.toByteArray();
    } catch (IOException e) {
      e.printStackTrace();
    }
    return null;
  }
public byte [ ] convertToBytes ( ) { try { ByteArrayOutputStream result = new ByteArrayOutputStream ( ) ; ObjectOutputStream output = new ObjectOutputStream ( result ) ; output . writeObject ( this ) ; return result . toByteArray ( ) ; } catch ( IOException e ) { e . printStackTrace ( ) ; } return null ; }
Returns the serialized Photo object.
Returns the serialized Photo object .