Issue with themeresource file names

I am facing problem with Themeresource filename with spaces,

Link help = new Link();
help.setIcon(new ThemeResource(helpImage));
help.setDescription(“Help”);
help.addStyleName(“icon-only”);
help.addStyleName(“borderless”);
help.setTargetName(“_blank”);
[b]
help.setResource(“a b.html”);

// this will work if we remove spaces in the file name… I need to set resource file names with spaces.
[/b]

please suggest.

Firstly setResource must get some Resource and not String path, and about space in file name see
this
and maybe you will understand why shouldn’t use space

Hi Pavlov,

Thanks for reply…

Spaces in FileName is automatically encoding with + or %20 if I use FileResource…

It is not working If I use ThemeResource.

Thanks,
Venkat