Measurement of inclusive photoproduction at 3.2 GeV and comparison with electroproduction