Adding a Image to a media folder programmatically

Hi, I have built a web api that receives an image via http-post and turns it into a c# Image. I now want to save this image to the media lib, preforming all the same processing that would be done when manually upload (I’,m guessing some cropping, permissions, subfoldering etc)

I don’t need the full code but while I’m looking over the API docs and cant find a good staring point. Anyone have any ide of what methods to start with? Also the Litium “Image Class” seam deprecated, is File the correct type to aim fore?

Litium version: 6

There is an article on docs that will get you started:
https://docs.litium.com/documentation/litium-documentation/media/import-media-files

Thank you! I did see that article when trying to find a solution but I read it to mean that it was dependent on litium-integration-kit. And I think the article, when just starting out is easy to read that way.

Just the subtile (To automate media import use the Integration Kit AddOn and the Product Media Mapper AddOn.) and the fact that is mentions that the code is from the kit. Makes this a really easy mistake. (Just for your information)

Glad to know this is not the case!

Thanks again.