Topbar
Topbar
Sign in
|
Join
|
Client Center
Home
Products
Client Center
Contact
Purchase
Support forums
»
Products
»
Ajax Uploader
»
How to get a byte array from the uploaded file?
How to get a byte array from the uploaded file?
04-16-2009, 9:06 AM
Catwiesl
Joined on 04-16-2009
Posts 3
How to get a byte array from the uploaded file?
Reply
Quote
CuteWebUI
.
MvcUploadFile
file
=
uploader
.
GetUploadedFile
(
fileguid
);
if
(
file
!=
null
)
{
// instead of moving the file to a temp-folder, how can I get access to the bytes, like:
// byte[] theFile = new byte[file.ContentLength];
// theFile = file.ToArray();
file
.
MoveTo
("~/UploaderTemp/" +
file
.
FileName
);
processedfiles
.
Add
(
file
.
FileName
);
}
Filed under:
byte array
View Complete Thread