Hi, I have an issue with this feature in 3.4
Well, long story short, no one changed the setting and now I have several thousand images in database.
I wisely backed up database and tried to change the setting.
Nopcommerce crashed due to OutOfMemory Exception (the load was too great for the worker process) and I ended up with a website not showing images.
After restoring the database, the images from db now load fine, but I still want to move them to filesystem.
Can I do it manually in more manageable chunks of data, like a 1000 at a time?
Well, long story short, no one changed the setting and now I have several thousand images in database.
I wisely backed up database and tried to change the setting.
Nopcommerce crashed due to OutOfMemory Exception (the load was too great for the worker process) and I ended up with a website not showing images.
After restoring the database, the images from db now load fine, but I still want to move them to filesystem.
Can I do it manually in more manageable chunks of data, like a 1000 at a time?
Hi,
You can use a little "hack" here and do the following. It will not require writing of custom export logic.
1. Make the setting to save the images in the database.
2. Backup your database.
3. Go to the pictures table and delete all records, except the first 1000.
4. Change the setting in the administration. This will find the 1000 left images in the table and will convert them into physical files.
5. Restore the database.
6. Repeat the procedure, but this time delete the first 1000 images and leave only the next 1000.
I hope this helped !