Class Photo

  • All Implemented Interfaces:
    java.io.Serializable

    public class Photo
    extends java.lang.Object
    implements java.io.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:
    Serialized Form
    • Field Summary

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

      Constructors 
      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)