Convert Spotlight Camera Wired to Hardwired

I have been trying to figure this out also. I want to mount the camera where I had a light already and just pull off of that power. I have a second camera that the electrical outlet is 35’ away. The 20’ cord is a little short. I really don’t want to use an extension cord.