4
Answers

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

Bineesh  VP

Bineesh VP

7y
255
1
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)