The K absorption spectra of nickel and selenium have been recorded photographically in the pure metals and the compounds NiSe and NiSe2. It has been observed that the Ni discontinuity shifts toward the high energy side with respect to that in the pure metal by about 5.0 eV for NiSe and about 6.7 eV for NiSe2. The Se edge in both these compounds is found to shift by about 2.6 eV toward the low energy side with respect to that in pure selenium. From these results it is possible to obtain the bonding pictures for the compounds. The compound NiSe appears to have resonating p3 type of bonding. For NiSe2 the orbitals involved in the bonding are d2sp3 for the metal atom and sp3 for the metalloid atom. The electrical behaviour of the compounds has been explained on the basis of these bonding pictures.