The applicability of Coulomb dissociation reactions to determine the cross section for the inverse neutron capture reaction was explored using the reaction 8Li(gamma,n)7Li. A 69.5 MeV/nucleon 8Li beam was incident on a Pb target, and the outgoing neutron and 7Li nucleus were measured in coincidence. The deduced (n,gamma) excitation function is consistent with data for the direct capture reaction 7Li(n,gamma)8Li and with low-energy effective field theory calculations.