I'm trying to read a dicom file using the instructions given in "Adding Imebra to your Intellij Idea" and I am facing issues.
The exact code snippet where am facing the issue is this:
Stream stream = new Stream();
stream.openFileRead("/sdcard/Download/87FDH4G2.dcm");
The error I get is that the stream cannot be opened. I have placed the file. But still I am getting this error. Please suggest me.
Try adding the following line to your AndroidManifest.xml:
This allows you to write to the external storage, and reading permission is included (I've tried only the read permission, but it didn't work for me, but write which has read included did... weird, but it worked).