09-22-2011 12:20 PM
Hello there! I want to show an image on the screen using its absolute path.
I read the in "Accesing Embedded vs File System Resources" from http://supportforums.blackberry.com/t5/Web-and-Web
It works for me with embedded image.. but I need to work with File System Resources.. So the user have to choose the file that will be loaded on the screen. My application gets the absolute path of the file ( By example, file:///SDCard/BlackBerry/camera/image.jpg) and does the following:
document.getElementById("divv").innerHTML = "<img src='"+path+"' />;
where path is the absolute path.. in this case path = "file:///SDCard/BlackBerry/camera/image.jpg"
It doesn't work for me.. the image had never been loaded..
09-23-2011 09:53 AM