Skip to Content
0
Former Member
Oct 27, 2005 at 12:27 PM

Extracting Image as Thumbnail

53 Views

Hello,

I tried to extract thumbnail image from MDM using the following method:

//declare CatalogCache object

CatalogCache catalogCache = new CatalogCache();

//declare disc path

String path = "C:
Temp
cache";

//initialize catalogCache (this require it's own

//connection)

int rc = catalogCache.Init(<MDME server name>,

<repository port>, <user name>, <password>, path,

regionTag);

if (rc != RC.RC_OK) throw new StringException

(RC.GetTextForError(rc));

//save the file and return the file path

String imagePath = catalogCache.GetImagePath

("Images", "Thumbnail",

<image id>);

but when I display that in web Dynpro's I see the (Thumbnail)image of the <b>same size</b> as that of the (Original)image which is extracted by using the CatalogData.GetBlob() method.

Appreciate any help.

Many thanks,

Dharmi