hello Sir,
I can not able to store file content into byte variable.
I have do below code.
aspx.cs page:
[B]code on button click[/B]
DirectoryInfo dInfo;
FileInfo[] FilesList;
byte[] bytecontent;
dInfo = new DirectoryInfo(Server.MapPath("upload"));
FilesList = dInfo.GetFiles();
if (FilesList.Length>0)
{
files = new string[FilesList.Length];
foreach (FileInfo fi in FilesList)
{
string fileName = fi.Name;
string filetype= // i haven't get code.
string filesize=//i haven't get code.
byteContent =// i haven't get code.
}
i am trying to store this value after getting it.
Sir,i hope U will helpful to me..