Base64 can't show the correct image in Canvas.

161 views
Skip to first unread message

Tanvir Ahmad

unread,
May 31, 2016, 1:26:58 AM5/31/16
to cornerstone platform
I see the CornerstoneTools In GitHub by google search. 
First of all i want to say you a great thanks for this solution.

I am learning something with it, but i have problem to convert image to base64 data image.
If i convert image to base64 then put the string in this link ( https://github.com/chafey/cornerstoneTools/blob/master/examples/exampleImageLoader.js ) in line number 5, it's showing black, not showing correct image in canvas. Actually i can't understand which format or how to get this string from a .dcm file or .jpg file. 

Can any one help me please , how can i get this string or how to use any dcm or jpg file from server.

Thanks in advanced.
Best Regards,
Tanvir

Chris Hafey

unread,
May 31, 2016, 8:37:20 AM5/31/16
to cornerstone platform
You can use cornerstoneWADOImageLoader to load DICOM files from a web server (via HTTP GET):


There is lots of good info on the forum, please read through it and use the search function.

Chris
Reply all
Reply to author
Forward
0 new messages