diff --git a/faq/general/error-license-buffer.md b/faq/general/error-license-buffer.md index d2af9fcc..bafbdbf9 100644 --- a/faq/general/error-license-buffer.md +++ b/faq/general/error-license-buffer.md @@ -17,10 +17,25 @@ When initializing the license for cloud hosted services, it is common to come ac This error occurs when Dynamsoft sdk attempts to write the license file to the local usr/home directory or Home directory, but is unable to do so due to lack of permission to read or write the license file in that directory. -To resolve this issue, please set the license file cache path to a directory that your program has read and write permissions for. +To resolve this issue, please set the license file cache path to a directory that your program has read and write permissions for. Please place the code before license initializtion. -Code snippet in C++ +C++ ```C++ static int SetLicenseCachePath(const char* directoryPath) -``` \ No newline at end of file +``` +Python +```Python +LicenseManager.set_license_cache_path("DIRECTORY-PATH-FOR-LICENSE-CACHE") +``` +Java +```Java +BarcodeReader.setLicenseCachePath("DIRECTORY-PATH-FOR-LICENSE-CACHE"); +``` +.NET +```.NET +LicenseManager.SetLicenseCachePath("DIRECTORY-PATH-FOR-LICENSE-CACHE"); +``` + +For more language, please refer to [this page](https://www.dynamsoft.com/barcode-reader/docs/core/). Select the language and then navigate to API Reference -> DynamsoftLicense -> LicenseManager +