cancel
Showing results for 
Search instead for 
Did you mean: 

How to save image via MDM Java API

Former Member
0 Kudos

Hello,

has anybody got a working source code snippet, which enables you to save an image in the image table of the MDM repsoitory? Preferable with the new mdm java API? I'm using version 5.5 SP5

Regards,

Lissi

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

In the Image section, there's a property called "allow invalid images". This has to be set to yes in order to save an image via the api

Former Member
0 Kudos

Can you please post your code snippet to fille the various ImageRecord fields? I´m trying to save an image but don´t know what i´ve to pass as parameter for DataLocationId for example or format.

Former Member
0 Kudos

Hi Elisabeth

You could conclude/derive the hint/solution for your specific requirement by visiting :<a href="http://java.sun.com/developer/JDCTechTips/2004/tt0217.html#1">This URL</a>

Regards,

Krutarth

0 Kudos

Hello Krutarth,

thanks for your link, but the reading of the file and storing in an byte[] isn't the problem I'm facing.

It's an MDM specific problem - I'm able to save the image in the binary object table - yet I'm not able to save it in the Image table of the repository - it always tells me something like "BADPARAM".

Therefore I wanted to have a source code example which is working.

Kind regards,

Lissi