Dictionary<ArrayList, List<byte[]>>;
Dictionary<String[], ArrayList<Object>> diction;
public Dictionary<ArrayList, List<byte[]>> getImages() { Dictionary<ArrayList, List<byte[]>> image_Name = new Dictionary<ArrayList, List<byte[]>>(); DirectoryInfo directoryInfo = new DirectoryInfo(@"C:\Users\Yakhtar\Desktop\abc"); arr1 = new ArrayList(); foreach (FileInfo fi in directoryInfo.GetFiles()) arr1.Add(fi.FullName); list = new List<byte[]>(); for (int i = 0; i < arr1.Count; i++) { img = Image.FromFile(arr1[i].ToString()); ms = new MemoryStream(); img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg); list.Add(ms.ToArray()); } image_Name.Add(arr1, list); //image_Name[arr1 as ArrayList] = [list as byte[]]; return image_Name; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)