Information Encoding and Retrieval in Photonic Systems