Colin L. wrote:
On 8 September 2010 21:50, Abder-Rahman A. [email protected]
And, when I try this path in a browser I get the image displayed.
You cannot show files on the local machine (that is C:) in a web page,
the browser will not allow it. Usually images are put in a folder
under the public folder of your app. For example if you put them in
public/images then the img src should be /images/filename.jpg
It seems I’m doing something wrong but not aware of it.
In the dicom_info.rb file which is attached, I made a change in the the
loop for retrieving dicom files as follows:
Dir["./public/images/dcm_files/*.dcm"].each do |dcm|
dicom_files << dcm
In this case, when I “View source”, I get the path as follows:
Provided that I’m using:
<%= image_tag(@examination.image) %>
How can I overcome this path issue?