The encoding process proceeds by application of ultraviolet light tuned to the absorption band associated with the transition of electrons from the valence band to the conduction band. During UV application, an external electric field is used to modify the electric dipole moment of regions of the ferroelectric material that are exposed to UV light. By this process, a pattern of local electric field orientations can be encoded.