Add JPG gradients to PS cs

I apologise if this has already been asked. I've searched through the memories but I haven't been able to find an answer to this question. How do I use .png or .jpg files as gradients for Photoshop? thanks!