Pergin Sheni

Pergin Sheni

  • NA
  • 431
  • 2.7k

View a dcm file with cornerstone js from an S3 bucket in AWS

Nov 4 2019 4:08 AM
I know to load dcm images from my local folder, but I need to load it from Amazon s3 cloud. My sample dcm image url looks like https://myapp.s3.amazonaws.com/myfolder/abcdef.dcm?AWSAccessKeyId=xxxx&Expires=xxx&Signature=xxxx
 
How can I load this image by using cornerstonejs?
 
First I tried this https://rawgit.com/cornerstonejs/cornerstoneWADOImageLoader/master/examples/wadouri/index.html
 
It says alert [object Object], when I am pasting my dicom img url.
 
Second I tried this https://github.com/cornerstonejs/cornerstoneWADOImageLoader/blob/master/examples/wadouri/index.html
 
I worked out this sample code. It says alert [object XMLHttpRequest]
 
Second one is sample code of first. 

Answers (2)