As a network admin I would say - YES! it's a good idea!
As a programmer I would say - well, maybe, who knows.
The thing is that I might guess you're uploading these jpeg images and you need to store them into server. To store them as file you need a directory with write access for everyone and this could lead to security problems and also your webadmin will say that you're a no good programmer. In some companies webadmins don't allow you to make directories writable even🙂
As a programmer... It's a nice idea to store jpeg in mysql, no you won't lose any information, if you store it in blob field and everything will be just fine - php and mysql deal with binary data ok. If you deal with it ok ofc🙂 But you have to search for more information about storing large data in a database - is it effective enough. I am not sure but I think retrieving a large block of data from a database takes longer than reading that block from a file. Plus if you're making some dynamic image system then imagine this:
1. Your PHP renders HTML, it queries database for images (returns image address)
2. Your php queries database for the image itself and retrieves it and returns the image
OR
- Your PHP renders HTML, it queries db for imgs (returns address)
- Client sends a request and webserver returns the image directly from the filesystem.
So you have to consider these things🙂