Hey guys, I’m hosting an app where amongst the main features is storing and displaying a lot of image data. I’m hosting this application off of hostinger (not sure whether or not that’s a bad idea). My app is very simple; it’s stored on a single server with a single database. The images are all stored as longblobs on the database. It takes forever to even load a single image.
My question is: what is the best way to handle so many images? How do I store them and retrieve them for client use? How do other apps do this so well, and what are the pros and cons of storing the image data in a database vs as files somewhere on the actual server?
In other words, if I started from scratch, what would you recommend that I do and why?