Thanks for the help guys ! I also start thinking that the database issue which caused the problems, indeed is the maximum number of connections to the database server. Anyway, I adore the new method which I use from now on : resize and upload to a directory, seems faster, seems more reliable :)...