An information processing apparatus obtains photoacoustic data generated on a basis of a photoacoustic signal obtained by irradiating a subject with light, obtains compressed data obtained by compressing the photoacoustic data in accordance with a type of the photoacoustic data obtained on a basis of the same photoacoustic signal, and outputs the compressed data to an external apparatus.