If the photon's energy is greater than the substance's work function, photoelectric emission occurs and the electron is liberated from the surface.
From the en.wikipedia.org
That is, an image is projected onto the photoelectric mosaic of a charge storage plate, so that positive charges are produced and stored there due to photo-emission and capacitance, respectively.