Using Recuva on smartphone

I forgot the code of my mobile phone, so I can no longer open it and access my photos. Can anyone help me use Recuva to find my photos. The phone is a XPERIA Z1. Thank you very much in advance.

Unless the phone can connect to the computer as a drive (with a letter) then recuva cannot help you. Android removed the ability to connect as a drive so it's unlikely that your phone will be able to do this.