I am writing jpg images from a file into a datatable. There are about three images in the target file , with a size of no more than 850kb per image. Yet this process seems to consume an inordinate amount of memory.
Is there a better way?
Dim File As FileInfo
Dim folder AsNew DirectoryInfo(FileLocation)
ForEach File In folder.GetFiles()
Dim Row As Data.DataRow
Row = DataTble.NewRow
Dim Fs As FileStream = New FileStream(File.FullName, FileMode.Open, FileAccess.Read)