I am migrating a PHP based websites to Episerver.
I am writting a job which will copy the content from the existing site and map it to episerver version website.
But I am facing a problem in it.
For Images whenever i am fetching the HTML dom for images it's pointing to existing site images.Now my target is to copy those images and move it to Episerver media folder and map those images to episerver content.
Does anybody having idea how it can be achieved?
Easiest is probably to import images from Episerver solution. There is pretty decent documentation here
how to save files as media types. You probably want to get the by url and store them as a custom image class in your case.
I posted some code for downloading an image from an url and uploading it to episerver here: http://world.episerver.com/forum/developer-forum/Developer-to-developer/Thread-Container/2016/6/how-to-upload-images-progammatically-for-a-page/
@TimRogler Thanks a lot Tim Rogler.
No worries, happy to help :)