IResourceFileServiceGetFileOnDisk Method

Gets the path to an on-disk location for the resource.

Namespace:  Dundas.BI.FileSystem
Assembly:  Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (24.3.0.1000)
Syntax
string GetFileOnDisk(
	Guid resourceId
)

Parameters

resourceId
Type: SystemGuid
The ID of the resource.

Return Value

Type: String
The path to an on-disk location for the resource.
Exceptions
ExceptionCondition
ArgumentExceptionresourceId is Empty.
InvalidOperationExceptionresourceId corresponds to an entry which is not a resource.
NotFoundExceptionThe resource with the specified ID does not exist.
OperationFailedExceptionThe operation failed. Refer to inner exception for more details.
NoPrivilegeExceptionThe caller does not have the Read privilege on the resource.
InvalidSessionExceptionThe caller context is not associated with a valid session.
Remarks
The contents of resources are stored in either the application database or the data warehouse database, depending on the type of resource. Occasionally, code which needs to use the resource requires it to be a file on the physical disk rather than a byte stream. This method facilitates this scenario by automatically reading the bytes from the appropriate database and creating a physical file from the byte stream. The path to the file is returned.
See Also