If you're not storing the image name in the database you cant magically expect SqlDataReader to invent a name for you. I can think of two options, but, the first of those would depend on the image name being part of the metadata for the image - as in EXIF data - so, ignoring that ...
Option 2 : How about an easier approach - given you have an Employee ID and an associated image from your database, the only thing I can think of is you 'name' the image using the Employee ID (possibly padded with '0's to make the same length) and append ".jpg" (or whatever image extension you need) to that
So, instead of
Quote:
[ Here I need the Images names to store in List or array.How?? ]
you use something like
string imageName = getImageNameFromEmployeeID(vID, ".jpg");
where getImageNameFromEmployeeID looks like
string getImageNameFromEmployeeID(int vID, string defaultExtension)
{
string tmpImageName = vID.ToString("D10") + defaultExtension;
return tmpImageName;
}