Get into recovery mode Xperia Ray
Download android studio, install adb SDK, then open command prompt, change directory to 

C:\Users\[UserName]\AppData\Local\Android\sdk\platform-tools


Then hit the following in command prompt

adb reboot recovery


Then your phone enters recovery mode. I did the same in my Xperia Ray and succeeded.