Index: /WAeUP_SRP/trunk/Students.py
===================================================================
--- /WAeUP_SRP/trunk/Students.py	(revision 1711)
+++ /WAeUP_SRP/trunk/Students.py	(revision 1712)
@@ -655,12 +655,13 @@
                     break
             if file is not None:
-                img = PIL.Image.open(file)
-                img.thumbnail((150,200),
-                              resample=PIL.Image.ANTIALIAS)
-                # We now need a buffer to write to. It can't be the same
-                # as the inbuffer as the PNG writer will write over itself.
-                outfile = StringIO()
-                img.save(outfile, format=img.format)            
-                #outfile = file.read()
+            
+                ## file conversion does not work           
+                #img = PIL.Image.open(file)
+                #img.thumbnail((150,200),
+                #              resample=PIL.Image.ANTIALIAS)
+                #outfile = StringIO()
+                #img.save(outfile, format=img.format)            
+
+                outfile = file.read()
                 app_doc.manage_addFile('passport',
                                        file=outfile,
