[Solved] How to upload any type of and any size of file in table of Oracle using C#? [closed]
//Here First you need to upload file on application server then convert into File Stream. string auditReportUploadDocLocation = ConfigurationManager.AppSettings[“AuditReportUploadDocLocation”].ToString(); string filelocation = Path.Combine(Server.MapPath(auditReportUploadDocLocation), fuUploadDoc.FileName); fuUploadDoc.PostedFile.SaveAs(filelocation); fileName = Path.GetFileName(fuUploadDoc.PostedFile.FileName); using (FileStream fs = new FileStream(filelocation, FileMode.Open, FileAccess.Read)) { objAudAuditReportMaster = objAudAuditReportBAL.UploadAuditReportDoc(fileName, fs, Session[“AudLoginID”].ToString(), audProcessName); } //Delete the file from application server. if (File.Exists(filelocation)) File.Delete(filelocation); //After that … Read more