Virtual Happy Hour this month, Jun 28, we'll be getting a sneak preview at our soon to launch SaaS CMS!

Try our conversational search powered by Generative AI!

How to copy image from a www URL and paste it to EPI media in CMS?

Vote:
 

Hi All,

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?

#152598
Aug 25, 2016 21:51
Vote:
 

Easiest is probably to import images from Episerver solution. There is pretty decent documentation here

http://world.episerver.com/documentation/Items/Developers-Guide/Episerver-CMS/9/Content/Assets-and-media/Working-with-media/

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.

#152602
Aug 26, 2016 0:04
Vote:
 
#152611
Aug 26, 2016 10:40
Vote:
 

@TimRogler Thanks a lot Tim Rogler.

#154983
Sep 06, 2016 13:38
Vote:
 

No worries, happy to help :)

#154984
Sep 06, 2016 13:41
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.