Where are the JPEG files located on the hard drive?

Photos app & iCloud

I'm using the latest Mac OS and photos app.
Can someone tell me where the actual JPEG files are located on the hard drive?

Also is there a way to download all my photos from the photos app on iCloud.com at once?

Thanks
Re: Photos app & iCloud

These links may help:

How to use Photos for OS X: The ultimate guide | iMore

How to use Photos for iPhone and iPad: The ultimate guide | iMore

Original thread: https://forums.imore.com/threads/where-are-the-jpeg-files-located-on-the-hard-drive.325271/