Changing the Location of the folder having images effecting the path stored in the Db.
I have a folder that stores the images and the path is stored in the Database.There are almost 2500+ images employee images stored there.If I want to change the physical location of this folder that has the images how do i manage the path of the path in the Db and the virtual path ,Root and all the related info.
Amit DhaniaPosted Apr 21, 2012, 3:42 AM
Whenever we need to specify folder location it need to be set in config file. As there are chances of movement of files from one location other due many concerns.
Now in your case, you already using Database to store images path & location has been changed. Now what you can do here is, first specify new location in config file. Write a few line of code, fetching image name from database & prepare image path by concatenating image name & path from config file.