Skip to Content
0
Former Member
Feb 16, 2004 at 12:52 PM

Function/Method for getting MIME object by name ??

825 Views

Hi all,

does anyone know of a function/method to get a mime from the mime repository

using the mime name as input instead of the mime id ?

Background:

I use html-fragments which are stored in the mime repository. Now I'd like to

extract this fragment into a string variable in a bsp page. Right now I use

the method 'cl_wb_mime_repository=>get_all_mimes' using the folder name

as input to get all mimes in that specific folder. Using the result I filter the

relevant mime out of the list to get the mime ID.

Unfortunately this method takes AGES, when there are lots of mimes in

that folder or subfolders.

Now I'm looking for a way to get the mime directly using the path and

name (without knowing the mime ID).

Does anyone know if this is possible or what method/function to use ?

Thanks a lot.

Stefan