I haven't done this before myself, but is the image stored as a BLOB in the database? Is the MIME-type (image/jpg) correct? Try image/jpeg - this is what I should be I believe.
but when i change "image/jpg" to "customer/jpg"
customer/jpg won't work; there are only specific MIME-types that you can use, you can't make them up