A photo of the suspect was taken just before the attack, at a 7-Eleven on Laurel Street.
He struck the 47-year-old woman several times and then dragged her by the dumpsters and tried to sexually assault her.
That's when she got away and ran back into the store for help.
Santa Cruz police are still unsure whether he knew his victim.