hello to everyone,

Can anyone tell me how to store picture from a specific folder to a matching name.

for example if i have 100 customers with a specifc ID, i store 100 picture in my folder with these ID's names.
like:

ID Customer
1 mike
2 lucy
3 jack

and i store there picture in a folder like
1.jpg
2.jpg
3.jpg

Required code is to automatic search matching Picture name to related costomers ID.

If you got your custormerID, construct your file path with it.
string path = @"c:\MyPictFolder\custormerID.jpg";
Now open the picture. Have a look at FileStream, to see how to do that if you would have trouble with it.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.