Edit on 8/7/2014
Well, this script is pretty much worthless now. Not sure when it happened, but Moodle now lets you upload the entire Blackboard zip file, images included, and everything gets imported. No more messing around with the res00000 files.
Going to leave the original post though. Might be handy for someone stuck using an older version of Moodle.
I’m a big fan of Moodle, but really don’t like the way you have to add questions to banks. There’s just too much on that page.
So I normally build question banks in Examview and then import to Moodle. Only catch is that importing that way doesn’t allow for images.
So what I’ve done is create a simple Python script that takes the exported file and replaces the image links with a data scheme URI. Wasn’t expecting it to work, but it works without a hitch.