1. A digital camera comprising:a communicator configured to communicate with another digital camera;
an imaging sensor configured to image an object and output image data; and
a central processing unit (CPU) configured to, after the communicator begins to communicate with the other digital camera, perform both of:
transmitting the image data output by the imaging sensor to the other digital camera without recording the image data in a removable memory card in the digital camera in response to first setting information, the first setting information including first information regarding a recording location at which the image data should be recorded, the recording location including the other digital camera, and
transmitting the image data to the other digital camera and recording the image data in the removable memory card in response to second setting information different from the first setting information, the second setting information including second information regarding recording locations at which the image data should be recorded, the recording locations including the removable memory card and the other digital camera.