How to get the file name of File Resource

Hi all, I have created an Url to open the image .which has been there in Image Resource.

I have used this

@URLOpen(“http://localhost/tata.nsf/images.jpg?OpenImageResource”)

But this is fix to only “image.jpg” file.I want dynamicly get the name of file.Plz help me

.

Subject: How to get the file name of File Resource

I’m after this too, anyone have any luck with it.