Skip to main content

Import images into the database

Use this tool to move the pictures that were recorded for materials, groups and customers by a file path and were not saved in the database, such as old pictures. The tool reads each file from its path and saves it in the database, so the picture no longer depends on the file staying where it is.

Before you begin​

  • Make sure you have the Move images to the database permission (under Operations in Users Management) and that the button shows in File > Import & Export. It needs the import and export from files feature in the licence.
  • Make sure the picture files exist at their recorded paths and that this computer can reach them. The tool reads them from those paths.
  • Take a backup of the file. The tool starts as soon as you click the button without asking for confirmation, and it changes the picture records in the database.

Steps​

  1. Open File > Import & Export and click Move images to the database.
  2. Wait until it ends. A progress box appears with "Importing images to the database...".
  3. The message "Operation successfully completed" appears with the number of images moved and the number that failed under it. If the tool finds no image to move, the message "No images were found to import" appears instead.
  4. Choose Yes for the question "Do you want to review the report?" to open the report, or No. The report is explained in Move images to the database.

Result​

The images whose files were found are saved in the database. The recorded name of the picture changes from the full path to the file name without its extension, and the extension is saved in lower case. The material card or the customer card then shows the picture without the message "The image was not saved in the database!" (see Add pictures to a material, Material Card and Customer/Supplier Card).

A picture that failed to move stays as it was, and the report gives its reason. The tool tries again all the pictures not yet moved when you run it a second time.

If something goes wrong​

Message or situationWhy it appearsWhat to do
"No images were found to import"No picture is recorded by a path without being saved in the database.Nothing is needed.
A row with the failure cause "File not found"The file does not exist at the recorded path, or this computer cannot reach it.Put the file back or connect the folder, then run the tool again.
"Invalid or unsupported image extension"The file is not one of the accepted formats: bmp, jpg, jpeg, gif, png, tif, tiff and webp.Add a replacement picture in the material card with the New button.
"Storing images in database failed"The picture could not be saved.Run the tool again, and if it fails again add the picture from its card.

This page applies to alameen ERP 10, version 10.1.79.764.