on 11-16-2007 5:35 PM
Hi All
Im using the following MDM API function to get the image path from MDM server.
try{
path=catalogCache.GetImagePath("Images","Small",1012);
}
catch(Exception e){
LOG.error("Unable to find Small thumbnails " + e.getMessage());
}
But, It throws exception as follows
Unable to find Small thumbnails GetImageVariant error
Can you please help me understnd why the above exception is being thrown.
Is it because of improper Image variant Generation.
How to fix the above bug?
Thanks
Prakash A
Hi Walter
Could you please provide me the steps to generate variants for a specific image?
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Walter
Thanks a lot.
Could you please let me know where can I get javadoc documentation package.
Prakash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi R.n
Here is the error that I receive when I try to generate variant.
"Failed to generate variant 'Tiny[English [US]]' for image 'B701VE.jpg': Failed to connect to an Adobe Photoshop Automation Server."
Please advise.
Thanks
Prakash A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nathan,
1) The error code you are receiving (-5636096) is RC_CM_NORESULTS_FROM_DB - i.e. there is no image with the ID you are trying to retrieve. Note that these error code constants can be found in the file <b>constant-values.html</b> which is part of the javadoc documentation package.
2) In order to generate image variants, you must have Photoshop installed on the machine where Data Manager is running.
Walter
Hi Walter
Thanks for you reply.
I tried the STEP 1 and it was not successfull.
Here is the error message & code that I have received..
GetImageVariant error -5636096
Please advise on what is the root cause for this error and how this can be resolved.
Thanks
Prakash A
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nathan,
Try the following:
1) That you can actually get images - try to get the thumbnail:
path = catalogCache.GetImagePath("Images", "Thumbnail", 1012);
This should work (unless image id 1012 doesn't exist, or for some reason you don't generate thumbnails).
If Step 1 is successful, continue to Step 2:
2) In the MDM Data Manager, right-click on the image you are trying to retrieve, and see if it shows the "Small" option (the variant you are trying to retrieve via the API). If so, then you <i>should</i> be able to retrieve it via the API. If not, then in your <b>catch</b> block, try casting <b>e</b> to <b>StringException</b> and print the value of <b>e.GetErrorCode()</b> which might help further analyse the problem.
Regards,
Walter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.