Dear all,

I'm trying to open an html file (index.html) using the following code:

...
try {
browser = new Browser(getShell(), SWT.NONE);
} catch (SWTError e) {
e.printStackTrace();
}

if (browser != null) {
StringBuffer buf = new StringBuffer();
try {
InputStream inputStreamTxt = null;
String text = L10N.msg("Help");
if(text.trim().toLowerCase().equals(HELP)){
inputStreamTxt = this.getClass().getResourceAsStream("/financialCalc/help/index_en.html");
}else{
inputStreamTxt = this.getClass().getResourceAsStream("/financialCalc/help/index.html");
}

int c;
while ((c = inputStreamTxt.read()) != -1) {
buf.append((char) c);
}
inputStreamTxt.close();

} catch (IOException e) {
e.printStackTrace();
}

browser.setText(buf.toString());
...

However, the image used inside the html file is not being displayed when openning the browser inside the application in the cell phone. I've tried some possibilities:

* Copying the image to the "Images" folder to the memory card and access it using <img src="file:///Images/image001.jpg" />
* I've tried to put the image in the "res" folder of the application and access it using <img src="image001.jpg" /> or even using <img src="./image001.jpg" />
* I've tried to put the image in the same folder of the html file and access it using <img src="image001.jpg" /> or even using <img src="./image001.jpg" />
* I've tried to put the image in a specific folder for the html (e.g, index_files) and access it using <img src="image001.jpg" /> or <img src="./image001.jpg" />

Do you have any idea where is the problem?

Best regards,

David