Options

How do I use the magicpath properly?

KlappstuhlKlappstuhl Member Posts: 9
edited 2016-07-28 in NAV Three Tier
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

Best Answer

Answers

  • Options
    KlappstuhlKlappstuhl Member Posts: 9
    Thanks for the answer, now I have 460 html docs in the Dynamics NAV server's Temp folder. How do I download them to my desktop for example?

    Also the export changed the documents names. Is there a possibility to retrieve the original names?

    ef6abeb2aedb42bdbecbb0b8c6f6f84b.png

    Original names are like this
    77284b27367942cb9832ca6648c6f47c.png
Sign In or Register to comment.