Symptom
Media mime gets set to application/octet-stream which doesn't reflect the image type like jpg, jpeg correctly using "image/jpeg" when:
- ImpEx import using below which tries to set value for media mime field to "image/jpeg" while media url is using external storage.
$productCatalog=Default$catalogVersion=catalogversion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default=$productCatalog:Staged]$media=@media[translator=de.hybris.platform.impex.jalo.media.MediaDataTranslator]
# Create mediasINSERT_UPDATE Media;code[unique=true];$media;mime[default='image/jpeg'];$catalogVersion;folder(qualifier);test;http:https://domain/**/image/somefoldername/someimagename?wid=1200&hei=1200&fmt=JPG;image/jpeg;;images - Synchronize above media item to Online version even after changing the mime type of Staged media item to "image/jpeg".
***Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.***
Read more...
Environment
SAP Commerce Cloud
Product
SAP Commerce Cloud 2205
Keywords
impex, mime type, sync, no file extension , KBA , CEC-SCC-PLA-PL , Platform , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.