Patent ID: 8319991

Claim:
A communication apparatus that communicates image data with an external apparatus connected to the communication apparatus via a network, the communication apparatus comprising: a storage unit configured to store plural items of image data; a receiving unit configured to establish a communication session with the external apparatus in response to a request from the external apparatus and receive image data from the external apparatus; a transmitting unit configured to transmit the image data stored in the storage unit to the external apparatus using the communication session that has been established in response to the request from the external apparatus and that has been used by the receiving unit to receive the received image data; a setting unit configured to set one transmission mode of a plurality of transmission modes, wherein the plurality of transmission modes includes at least a first transmission mode in which the image data stored in the storage unit is transmitted in response to the external apparatus that has sent a request for establishing the communication session being a specific external apparatus, and a second transmission mode in which the image data stored in the storage unit is transmitted regardless of which external apparatus that has sent a request for establishing the communication session is, wherein a transmission mode is set for each of the plural items of image data stored in the storage unit; and a control unit configured to control the transmitting unit, in response to the first transmission mode being set by the setting unit, to execute transmission of at least two of the plural items of image data using the communication session that has been established in response to the request from the external apparatus and that has been used by the receiving unit to receive the received image data, in response to the external apparatus that has sent a request for establishing the communication session being the specific external apparatus, and not to execute transmission of the image data in response to the external apparatus that has sent a request for establishing the communication session not being the specific external apparatus, and to control the transmitting unit, in response to the second transmission mode being set by the setting unit, to execute transmission of at least two of the plural items of image data using the communication session that has been established in response to the request from the external apparatus and that has been used by the receiving unit to receive the received image data, regardless of which external apparatus that has sent a request for establishing the communication session is.