We propose a method for performing binary intensity and continuous phase modulation of beams with a spatial light modulator (SLM) and a low-pass spatial filtering 4-f system. With our method it is possible to avoid the use of phase masks in holographic data storage systems or to enhance the phase encoding of the SLM by making it capable of binary amplitude modulation. The data storage capabilities and the limitations of the method are studied.