Bineesh  Viswanath

Bineesh Viswanath

  • NA
  • 1k
  • 776.1k

How to a assign array index for string array in c#

Jul 19 2017 3:40 AM
Sir,
 
I have some difficulty in merging two string array in my project.
 
The scenario is :-
 
I am loading multiple image from database as byte image. Thus image loaded into the picturBox correctly. 
 
Then I want to manipulate new images with images from database using openfileDialog.
 
I kept seperate string array for loading from database and from uploading.
 
 

string[] files= file from upload

PsprtfolderImagePathFromDb=files from database

 
 
 

The array string from database and string array from uploading coming with same array index. It thus throw exception.

Kindly help me to set the array index like these:-

Files[0]

Files[1]

PsprtfolderImagePathFromDb[2]

PsprtfolderImagePathFromDb[3]

 
 
 
 

Answers (4)