1. An image processing apparatus which is able to communicate with a server, comprising: an image data storage unit configured to store image data; a job execution unit configured to execute an input job for inputting image data and storing the image data in the image data storage unit, and an output job for outputting the image data which is input by execution of the input job and is stored in the image data storage unit; and a controller configured to, in a case where the job executed by the job execution unit is the input job, transmit the image data which is input by the execution of the input job to the server for storing in the server the image data as log information of the input job, and in a case where the job executed by the job execution unit is the output job, transmit reference information for referring to the image data stored in the server by the execution of the input job to the server for storing in the server the reference information as the log information of the output job without transmitting to the server the image data output by execution of the output job.