Re : Upload image and stored on PostgreSQL
Hi digrat,
I don't think your error is similar to barrowkwan. Although I don't precisely know what means "gone away" for a DB, I suggest you to check the my.cnf max upload size setting which is 1MB by default I think while you were uploading a 1.2MB file if I remember right.
If you find that this is what the error meant, I'll try to put this message's meaning easily accessible.