import of personal picture in ILIAS

Thanks to Helmut, who made it possible, we can now automatically import personal pictures of tutors and students from the XML with the user data. The pictures are encoded using Base64 within the XML file, so there is no need to do anything more than this when creating the XML from a CSV file (or whatever):

$handle = fopen($tempfile,'rb');
$file_content = fread($handle,filesize($tempfile));
$encoded = chunk_split(base64_encode($file_content));

and then concatenate $encoded within the XML stream.

Importing a user file with 42 tutors (~150Kb, if the picture has ID card size), asigning different local roles, and creating 3 different size thumbnails (using imagemagick as backend), take a time of 20 seconds.



2 comentarios en “import of personal picture in ILIAS


Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de

Estás comentando usando tu cuenta de Cerrar sesión /  Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión /  Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión /  Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión /  Cambiar )


Conectando a %s