Class Photo

  • All Implemented Interfaces:

    public class Photo
    extends java.lang.Object
    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.

    Javier Paniza
    See Also:
    Serialized Form
    • Field Summary

      Modifier and Type Field Description
      byte[] data  
    • Constructor Summary

      Constructor Description
      Photo​(byte[] data)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • data

        public byte[] data
    • Constructor Detail

      • Photo

        public Photo​(byte[] data)