Import question item with image in Moodle XML format

Re: Import question item with image in Moodle XML format

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The most likely explanation is that the base64 enocding of the image was wrong. Look at the code in question/format/xml to see how Moodle generates it and decodes it.

Anyway, you are going to have to do some debugging to work out why your file is not importing correctly. At what point along the process of parsing the file, then saving the data in the database, is the image getting lost?