It's up to you to modulate the properties of a light field in some way so as to allow someone later to measure these modulations and extract data from them. A simple way might be to send a train of pulses whose polarizations are set to be either vertical or horizontal (as defined by me). I can associate bit values with these two physical states and transmit a bit stream to a person who knows to measure polarizations with a beam splitter (oriented in the correct direction) and a couple of photodetectors.
In principle you could use just about any physical property of an E/M field to encode information (frequency, spatial mode, pulse duration, pulse energy, polarization, etc.).
More generally, you can store information in any physical system whose properties you can arrange in specific ways.