The characterization of a binary function by partial frequency information is considered. We show that it is possible to reconstruct the binary signal from incomplete measurements via solving a simple linear optimization problem. We further prove that if the binary function is spatially structured , then it can be recovered from very few frequency measurements.