int i=0; Image [] image = new Image[100]; while (reader.Read()) { string filePath = (string)reader["Path"]; byte[] transactionContext = (byte[])reader["TransactionContext"]; SqlFileStream sqlFileStream = new SqlFileStream(filePath, transactionContext, FileAccess.Read); byte[] data = new byte[Convert.ToInt32(sqlFileStream.Length)]; sqlFileStream2.Read(data, 0, Convert.ToInt32(sqlFileStream.Length)); image[i] = System.Drawing.Image.FromStream(sqlFileStream, true, true); //sqlFileStream.Close(); i++; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)