aspose file tools*
The moose likes I/O and Streams and the fly likes Reading DICOM Images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Reading DICOM Images" Watch "Reading DICOM Images" New topic
Author

Reading DICOM Images

Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
Hello,

I'm using the code provided at the following link to read DICOM images:

http://www.dcm4che.org/confluence/display/d2/Reading+DICOM+files

But, I'm getting errors under the following, and think that they are due "Import" stuff, but don't know from or what to import.

DicomObject

DicomInputStream

Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
Unfortunately we can't read your screen, so if you posted those error messages, that would really help us help you...

How are you adding the library that contains those classes to the classpath?


Ping & DNS - my free Android networking tools app
Greg Charles
Sheriff

Joined: Oct 01, 2001
Posts: 2854
    
  11

Agree with Ulf. If you let us see the error message, we're more likely to be able to help. I just wanted to add that using a IDE like Eclipse, which is free, can make working with imports much easier. In most cases it can automatically write the import statements for you.
Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
Ulf Dittmer wrote:Unfortunately we can't read your screen, so if you posted those error messages, that would really help us help you...

How are you adding the library that contains those classes to the classpath?


I'm getting an error under the "DicomInputStrea," stating the following:

DicomInputStream cannot be resolved to a type


As for adding the .jar files, I just created a "lib" folder in my project and added the .jar files to that folder.

Makes sense?

Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42292
    
  64
As for adding the .jar files, I just created a "lib" folder in my project and added the .jar files to that folder.

Jar files need to be added individually to the classpath; just putting them into a particular folder accomplished nothing (unless you're using a tool like Ant that is set up to add all files in a particular folder to the classpath).
Abder-Rahman Ali
Ranch Hand

Joined: May 22, 2008
Posts: 138
I found that the MAIJN matter was due to the fact that there were some files missing, and the problem is now being resolved.

Thanks everyone.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reading DICOM Images