unix - Displaying images stored in Openshift server -


i want display image stored in openshift server using img tag. now, have created folder in $openshift_data_dir in server. after going directory, pwd complete path :

    /var/lib/openshift/52002234335h7b0000163/app-root/data/pamphlets 

so, specified path in img tag

        <img src="/var/lib/openshift/52002234335h7b0000163/approot/data/pamphlets/1.png" class="map" alt="image not available" 

i tried out

      file:///var/lib/openshift/52002234335h7b0000163/app-root/data/pamphlets/1.png 

but nothing working. can point me out mistake making?

i asume developing web application. in case missing fact should use path defined on web server's documentroot. should use root web-accessible files. so, instance /pamphlets/ path if webserver's documentroot points $openshift_data_dir. if using 1 of preloaded cartridges make sure happens first.


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -