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
sagar_parmar
Posts: 3
Registered: ‎08-14-2009
My Device: Not Specified

Accessing image from resources in a custom browser field

[ Edited ]

Hi all,

 

I created a class called Protocol for loading local content in a browser field (Using HttpFilter demo of jde). Now i want to access an image  to use as a background of the text loaded in browser field. I tried a lot but sumhow i could not do it. Please help me. 

 I am right now using the following code where background.jpg resides in package Resources in src folder.

 

<body style="background-image:url('background.jpg')"> 

 

Here content is in string variable which is loaded in browser field. So is it possible to access resources ?? how?? 

 

Thanks!! 

 

Using JDE 4.7  

Message Edited by sagar_parmar on 08-24-2009 04:57 PM
Developer
BBDeveloper
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Accessing image from resources in a custom browser field

You could access resource like.. cod:///[Your Module Name]/abc.png. Put this in BB device Browser.. you will be able to access it.

Use Search. "Accept Solution" If the problem is resolved.