API Calls to upload new image via a connector.

Adam Jackman-Moore asked on October 20, 2014 07:09

Hi All,

I am importing products into Kentico via an internal connector and web service. The only thing i can't figure out is how we upload the associated images.

All the images are stored in an accessible url .. eg http://media.domain.com/productone.png

But the SKUInfo.ImagePath in the database has stuff like : "~/getmetafile/81f19cc9-b4bc-4986-982a-74f16b68312e/it_service_product.aspx"

How do i load my images into the Kentico db and then produce this path to add to the SKUInfo.

Also how do i associate multiple images to a SKU?

Any help here greatly appreciated.

Cheers Adam.

Recent Answers

Juraj Ondrus answered on December 6, 2014 11:02

Hi Adam,

You may have alredy figured this out. But for others reference, you can take inspiration from this article. There is available package for Kentico 7 with the API example how to import product and how to associate an image to it. For Kentico 8, you may need to adjust the code according to the API changes.

Best regards,
Juraj Ondrus

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.