Hello community,
I am creating an export of html files which are stored in BLOBs. The export is no problem, but I want to suppress the saving dialog since the export is able to contain 300 and more files at once.
For the export I use COD 419.BLOBExport. The call looks like this:
TempBlobGlob Record TempBlob
FileManagementGlob Codeunit File Management
DescriptionGlob BigText
outstrGlob OutStream
DocumentNameLoc Text
TempBlobGlob.Blob.CREATEOUTSTREAM(outstrGlob, TEXTENCODING::Windows);
DescriptionGlob.WRITE(outstrGlob);
TempBlobGlob.INSERT;
FileManagementGlob.BLOBExport(TempBlobGlob,DocumentNameLoc,FALSE);
With the 3rd parameter set to FALSE, the export downloads the files to the NAV server’s temporary folder.
Can anyone tell me how to get the temporary files from there, saving them with the specified name (DocumentNameLoc) and in the correct directory? The directory is defined in the setup of my application.
Thanks in advance
Answers
Franz Kalchmair, MVP
Alias: Jonathan Archer
please like / agree / verify my answer, if it was helpful for you. thx.
Blog: http://moxie4nav.wordpress.com/
Also the export changed the documents names. Is there a possibility to retrieve the original names?
Original names are like this