In this work, the spacetime distributions of the electric and magnetic fields of photon are revealed. It is first time found that the spacetime distributions of electric and magnetic fields of photon are source dependent. Based on this discovery, some potential applications are discussed.