pasting
string[] strImageLocation = new string[i+1];//Array declaration where i want to store values
strImageLocation[i] = dtblPsprt.Rows[i]["filePath"].ToString();//assinged value from db into array
for (int i = 0; i < dtblPsprt.Rows.Count; i++)
{
string[] strImageLocation = new string[i+1];
pbox[i] = new PictureBox();
tbPsprtPBoxPassport.Controls.Add(pbox[i]);
psprtImage = new Byte[i];
psprtImage = (Byte[])(dtblPsprt.Rows[i]["psprtImage"]);
Psprtmem = new MemoryStream(psprtImage);
pbox[i].Image = Image.FromStream(Psprtmem);
tbPsprtPBoxPassport.Image = pbox[i].Image;
strImageLocation[i] = dtblPsprt.Rows[i]["filePath"].ToString();
}