Import question item with image in Moodle XML format

Re: Import question item with image in Moodle XML format

Nosūtīja Tim Hunt
Atbilžu skaits: 0
Core developers attēls Documentation writers attēls Particularly helpful Moodlers attēls Peer reviewers attēls Plugin developers attēls

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?