Hello,
What's the easiest way to get the text of an uploaded file stream? Note I do not plan to save the actual file. Just get it's text and save that.
What's the easiest way to get the text of an uploaded file stream? Note I do not plan to save the actual file. Just get it's text and save that.
// save |
if (RadUploadSQL.UploadedFiles.Count>0) |
{ |
foreach (UploadedFile validFile in RadUploadSQL.UploadedFiles) |
{ |
// open sql file |
byte[] Filedata; |
int Filesize; |
Filesize = Convert.ToInt32(validFile.InputStream.Length); |
validFile.InputStream.Read(Filedata, 0, Filesize); // What to do here? |
} |
} |