Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

Issue with rendering dicom images from the server Ohif Viewr

Open ravikant-cisin opened this issue 6 years ago • 4 comments

Hi,

I am using OHIF Viewer to rendering the dicom images in the viewer. But i am getting following issue while going through it.

  1. I am trying to render .dcm format images so i have cretaed an api and changed the url directly from the source code. When it is hitting to the sever it gives CORS policy error..In the response api i have added all the headers in the repsonse but i am getting the same issue.
  2. If i have dcm format images how i need to send it in the response ? For example i am using core php api for the image and i am using "file_get_content" method to send response when image instance api calling...So will it be good way to return the response Or i need to change the way i am sending in the response.

Please help me in the above 2 points..I am really not getting how can i resolve it. Please help me.

Thanks

ravikant-cisin avatar Nov 10 '20 07:11 ravikant-cisin

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 01 '20 08:12 stale[bot]

Hii @ravikant-cisin , we tried recently to render .dcm files with OHIF viewer support. Its rendered fine as expected. we tried both by browsing internal files and by passing configurable structured JSON. For reference, u can find node.js sample code here https://github.com/VinayBaviri/ohif-viewer.

Thank you.

VinayBaviri avatar Sep 01 '21 13:09 VinayBaviri

Hello @VinayBaviri, I am searching for similar solution and found your sample code very impressive.

One thing I wanted to understand is: I have series of .dcm files like this example. In your sample code at route /view there is a variable imageUrl. What could be the best way to pass file(s) or folder to generate JSON at once?

Many thanks.

anarnoli avatar Jan 28 '22 19:01 anarnoli

Could you please review our comprehensive documentation on Cross-Origin Resource Sharing (CORS) and OHIF? Below are the links provided for your reference.

  • https://docs.ohif.org/deployment/cors
  • https://docs.ohif.org/deployment/iframe

sedghi avatar Oct 12 '23 20:10 sedghi