tags:

views:

235

answers:

1

Where can i store picture while paging. Whether it should be stored in folder or db. What to store in the db. entire images or only path. if path only how to get the path for a picture in a directory. Please help me


Exact Duplicate: User Images: Database or filesystem storage?
Exact Duplicate: Storing images in database: Yea or nay?
Exact Duplicate: Should I store my images in the database or folders?
Exact Duplicate: Would you store binary data in database or folders?
Exact Duplicate: Store pictures as files or or the database for a web app?
Exact Duplicate: Storing a small number of images: blob or fs?
Exact Duplicate: store image in filesystem or database?

+3  A: 

I'd probably store the images in a folder and just have the database point to it. Your filesystem is setup to store files well and access them efficiently so just use that. If you have a content root directory hardcoded as a constant in your code you can just use that and build a path based on the path stored in the database.

Jon