hi,
    I shall come straight to the point, I'm using Jason Hunter's Multipart
classes to deal with uploading of attachment, the classes really help a lot
in the work :) Everything was fine until my team decided to enhance it by
encrypting the attachment and digital signing the form submitted. The file
size after the encryption and digital signing process seems like a bit weird
which I dunno why.

    I have a file with size 1kb and after encryption it becomes 5kb, after
that the encrypted file is being sent to the server as the attachment. I
notice that in the class in order to retrieve the file size is by:
    req.getContentLength()

    After some observation, I found out the following :
    1. If the file is not encrypted:
        Submitted File Size : 1kb
        req.getContentLength() : 1kb

    2. If the file is encrypted and is submitted :
        Submitted File Size : 5kb
        req.getContentLength() : 5kb

    3. If the file is encrypted and the form is being digital encrypted:
        Submitted File Size : 5kb
        req.getContentLength() : 12kb        ??

    and it breaks my checking on maximum file size. Anybody got any idea on
how to resolve this? This is urgent, pls help. TIA!



   ===
regards,
June

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to