Import question item with image in Moodle XML format

Re: Import question item with image in Moodle XML format

von Tim Hunt -
Anzahl Antworten: 0
Nutzerbild von Core developers Nutzerbild von Documentation writers Nutzerbild von Particularly helpful Moodlers Nutzerbild von Peer reviewers Nutzerbild von 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?