VintaSoft Imaging .NET SDK and Plug-ins Discussions
Questions, comments and suggestions concerning VintaSoft Imaging .NET SDK.
Board index < VintaSoft Imaging < VintaSoft Imaging .NET SDK and Plug-ins Discussions
Its working fine, but Its currently upload the files in the folder "wwwroot/UploadedImageFiles", and creating all cache data in the folder "wwwroot/VintasoftCache", I want to change these paths.If you want to change name of upload directory from "UploadedImageFiles" to other name in ASP.NET Core project, you need to do the following steps:
protected override IDataStorage CreateSessionDataStorage(string sessionId)
{
if (sessionId == null)
{
if (IsEmptySessionSupported)
sessionId = "";
else
throw new ArgumentNullException("sessionId");
}
string path = Path.Combine(HostingEnvironment.WebRootPath, "UploadedImageFiles", sessionId);
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
return new StreamDataStorageOnDisk(path);
}
And also can you advise to clear cache data programmatically after save/burn annotations.You can get image cache manager of web image viewer using the WebImageViewerJS.get_ImageCacheManager function.