I am facing a performance and security issue while working with documents on Laserfiche
so each time I have to export document from Laserfiche to save it on the disk and work it.
Is there any way to export document a FileStream or Memeoy Streams instead of saving the document?
Current code for exporting document:
RepositoryRegistration repository = new RepositoryRegistration(serverName, repositoryName);
using (Session session = new Session())
{
session.LogIn(userName, password, repository);
docInfo = Document.GetDocumentInfo(lfDocId, session);
docExt = docInfo.Extension;
var documentName = docInfo.Name;
documentName = docInfo.Name;
saveFilepath = $"{saveImportedPath}{documentName}.{docExt}";
DocumentExporter exporter = new DocumentExporter();
exporter.ExportElecDoc(docInfo, saveFilepath);
// log out of the repository
session.LogOut();
}
Thanks