Class Photo

java.lang.Object
org.openxava.util.Photo
All Implemented Interfaces:
Serializable

public class Photo extends Object implements Serializable
Wraps a byte array to allow store photos in a database with no support to byte [] o BLOBs, but yes java.lang.Object.

Serialize object for long term persistence is discourage, hence use this class only in extreme cases.

Author:
Javier Paniza
See Also:
  • Field Details

    • data

      public byte[] data
  • Constructor Details

    • Photo

      public Photo(byte[] data)