I have a task to read a punch of data from excel file and read images from folder then insert them into the database.
the excel sheet is like :
-------------
Name |Id -
Photo x |1 -
Photo y |2 -
-------------
and i have a database table like:
==============
Name |Binary =
==============
The photos in the folder is names by id like (1.jpg,...ect) to match the excel sheet
So my idea is to read all images paths from the folder like(1500 images) and add them to list (list of image paths) then read the data from the excel and add them all together
I could read the data from the excel file easy and read all columns easy loop and insert them in the database, but the problem is how could i read images and insert them with the excel data all together ?