06-05-2007, 10:08
|
dsteinich
Joined on 05-17-2007
Posts 1
|
Save DICOM "file" in database
|
 
 
|
|
|
I've been testing the trial version of v15 against an Oracle 10.2 database and have been able to do a majority of the functionality we will require. However the ability to save the actual DICOM dataset in the database has me baffled. Working with vb.net, I am able to use the Leadtools.Dicom.DicomDataSet.Load(ByVal buffer As System.IntPtr, ByVal bufferSize As Long, ByVal flags As Leadtools.Dicom.DicomDataSetFlags) method to get the file from the database into a DICOM dataset, but have been unable to then write that dataset back to the database. I think what I am looking for is an override of the DicomDataSet.Save() method which would save to a memory stream (rather than a physical file - just like the Load method has the ability to load from a physical file or a memory stream). Is there any way to accomplish this? I have found the example to save the image to the database (getting the "PixelData" element, extracting the image via DataSet.GetImage, and writing to a memory stream via RasterCodes.Save), but it changes the metadata for the image - for example: Patient name is changed from "REAL^PERSON" to "John^Doe".
Thank you, Dave
|
|
|
|
|
Report
|
|
|
|