How to add an image to MediaModel in Hybris? -


i trying read , add image programatically mediamodel not able do.

hot folders based on spring integration project. need inbound-adapter read image file, service activator converts image , outbound adapter writes converter media new folder.

<file:inbound-channel-adapter id="readfiles" directory="/path/to/data/mymedia"     filename-regex="^(.*)-(\d+)\.jpg">     <int:poller fixed-rate="1000" /> </file:inbound-channel-adapter>  <int:service-activator input-channel="readfiles" output-channel="convertedmedias" ref="somespringbean"     method="somemethod" />  <file:outbound-gateway request-channel="convertedmedias"     directory="/path/to/data/convertedmedia" delete-source-files="true" /> 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -