Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Save DICOM "file" in database
Started by dsteinich at 06-05-2007 10:08. Topic has 1 replies.

Print Search « Previous Thread Next Thread »
  06-05-2007, 10:08
dsteinich is not online. Last active: 5/17/2007 3:52:54 PM dsteinich

Not Ranked
Joined on 05-17-2007
Posts 1
Save DICOM "file" in database
Reply Quote
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 
  06-10-2007, 12:34
Adnan Ismail is not online. Last active: 10/14/2008 3:53:46 PM Adnan Ismail



Top 10 Posts
Joined on 07-31-2006
Posts 1,268
Re: Save DICOM "file" in database
Reply Quote
Dave,

There is currently no way in LEADTOOLS to save the Dicom dataset into memory directly.
You can save the dataset to file using the Save method, then read the file into a memory stream yourself.
If you would like to ask our engineers to add it in the future, you can post a feature request using the following web page:
http://www.leadtools.com/DevServices/Feature-Request.htm
If you do that, please provide as much information about the requirements you have


Adnan Ismail
LEADTOOLS Technical Support

   Report 
Post
LEAD Support Fo... » Developer » Database » Save DICOM "file" in database

Powered by Community Server, by Telligent Systems