Leadtools.Medical.Workstation.DataAccessLayer Namespace > IWorkstationDataAccessAgent Interface > StoreVolume Method : StoreVolume(String,List<Byte[]>,List<Byte[]>,IStorageDataAccessAgent,String) Method |
VolumeIdentifier StoreVolume( string seriesInstanceUID, List<byte[]> volumeData, List<byte[]> volumeState, IStorageDataAccessAgent storageDataAccess, string userIdentifier )
'Declaration Overloads Function StoreVolume( _ ByVal seriesInstanceUID As String, _ ByVal volumeData As List(Of Byte()), _ ByVal volumeState As List(Of Byte()), _ ByVal storageDataAccess As IStorageDataAccessAgent, _ ByVal userIdentifier As String _ ) As VolumeIdentifier
'Usage Dim instance As IWorkstationDataAccessAgent Dim seriesInstanceUID As String Dim volumeData As List(Of Byte()) Dim volumeState As List(Of Byte()) Dim storageDataAccess As IStorageDataAccessAgent Dim userIdentifier As String Dim value As VolumeIdentifier value = instance.StoreVolume(seriesInstanceUID, volumeData, volumeState, storageDataAccess, userIdentifier)
Since the 3D volume data might be huge the data is sent as chunks of bytes in the volumeData list, this way there is no need to allocate a huge consecutive memory and the chunks could be of any size.
The storageDataAccess is used to find the series images location where this 3D volume is generated from to store the volume in the same location.
To specify where the volume should be stored use the overloaded method of this function that accepts a storage directory.