It just came in my mind that with galaxy S3, factory reset left stuff in internal sdcard intact. Atleast with custom recovery, don't know about stock.
But i remember reading from somewhere that with s5 internal sdcard's data gets wiped also. Not sure though, because i don't have any own experience with s5.
Edit: Maybe this could provide some help to OP if you have wifi or data connection in your locked phone on. Don't know if GPS has to be enabled.
It seems that atleast in some cases you can unlock your phone through Samsung's site if you have Samsung account credentials.
http://support.three.co.uk/mobiledocs/Support/Device_support/Mobile/Samsung/galaxy_mega/unlock_phone.html@DeathTheKid I think i have solution for you to save your stuff like pictures before factory resetting, if you hadn't done it allready.
You just need Odin(google it if don't know it) and knowledge of some linux commands. This doesn't require usb debugging on.
Steps:
-Flash TWRP recovery via odin; instructions and files -->
http://forum.xda-developers.com/showthread.php?t=2697762-Boot in twrp(Hold home+vol.up+power keys)
-Go advanced settings and there is option to run "Terminal command".
So now you should be able to for example:
cp /path/to/your_stuff /path/to/extSd
Now you could also try to remove file that holds your screenlock password to bypass it.
Staff note: I can see you can use the modify button, but you still to choose to double post?Edit: for the staff member behind the note. I thought i had some relevant things to say for the OP and doubleposted for the "bump" effect that OP would more likely noticed it because the topic was a bit "dropped down" allready. My apologies.