notesUIDocument.Import with a database file resource

I would like to use notesUIDocument.Import(“HTML”,filename) with a database file resource. Is this possible?

I tried notesUIDocument.Import(“HTML”,“file.htm”), but it returns an error.

Thanks

David