how to replace Image1.ImageUrl to Fileupload1 in below code.
- string filename = Path.GetFileName(FileUpload1.PostedFile.FileName);
- string contenttype = FileUpload1.PostedFile.ContentType;
-
- using (Stream fs = FileUpload1.PostedFile.InputStream)
- {
- using (BinaryReader br = new BinaryReader(fs))
- {
- byte[] bytes = br.ReadBytes((Int32)fs.Length);
- }
- }
- }