Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
New Developer
earamsey
Posts: 3
Registered: ‎07-22-2008
My Device: Pearl

Opening file created on Local FIle System in browser application -- how?

is it possible to do something using something simlilar to:

platformRequest("file://localhost/root1/myfile.html");

To open file on local file system in browser? I will create the file on local file system using javax.microedition.io.file.*. Or should I use string "file://localhost/root1/myfile.html" as url instead?

 

Thanks, Erica A Ramsey Mobile Application Developer Resume ~ http://home.comcast.net/~erica.ramsey/CV Some Project Screenshots ~ http://home.comcast.net/~erica.ramsey/CV/screens.html
Please use plain text.
Developer
aditya_BB
Posts: 26
Registered: ‎10-21-2009
My Device: Not Specified

Re: Opening file created on Local FIle System in browser application -- how?

Itried with an image,

it worked for me...

 

 

 

Browser.getDefaultSession().displayPage("file:///SDCard/BlackBerry/pictures/mypic.jpg");

---

 

Aditya K.

 

Please use plain text.
New Developer
earamsey
Posts: 3
Registered: ‎07-22-2008
My Device: Pearl

Re: Opening file created on Local FIle System in browser application -- how?

ok, but "Browser.getDefaultSession().displayPage(file:///SDCard/BlackBerry/pictures/mypic.jpg);" requires code signing and i'm guessing that platformRequest does not.

Thanks, Erica A Ramsey Mobile Application Developer Resume ~ http://home.comcast.net/~erica.ramsey/CV Some Project Screenshots ~ http://home.comcast.net/~erica.ramsey/CV/screens.html
Please use plain text.