Delete PDF after placing the contents into the Document SQL record
This commit is contained in:
parent
c6d2003414
commit
a62793b1d5
@ -391,6 +391,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
Byte[] buf = new byte[pdfFile.Length];
|
Byte[] buf = new byte[pdfFile.Length];
|
||||||
fs.Read(buf, 0, buf.Length);
|
fs.Read(buf, 0, buf.Length);
|
||||||
fs.Close();
|
fs.Close();
|
||||||
|
pdfFile.Delete();
|
||||||
using (Document doc = docInfo.Get())
|
using (Document doc = docInfo.Get())
|
||||||
{
|
{
|
||||||
DocumentConfig dc = new DocumentConfig(doc);
|
DocumentConfig dc = new DocumentConfig(doc);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user