i need to do : select a spesific folder wich contains pictures and then load them in the database reading them one by one . any code example how can i do that ?????
asp.net load pictures from a folder to database
Collapse
X
-
Tags: None
-
You will need to use System.IO in your program.
The object you want is DirectoryInfo. Using this you can get a list of files in a directory. You can even get a filtered list (only images). Look up DirectoryInfo and FileInfo on how to do this, try it, and let us know if you need more help for this part.Code:'vb Imports System.IO //c# using System.IO;
Comment
-
-
Did you take a look at the System.IO Namespace?
You'll be interested in using the File Class, the Directory Class, and maybe the DirectoryInfo Class to solve your problem.
-FrinnyComment
Comment