>>> Patwa Patwa <[EMAIL PROTECTED]> 19-Apr-01 10:55:22 AM
>>>

>What i am trying to do is upload images and save them
>as binary data in to the database. Now currently i upload
>the file and write it to the server and than from there read
>it as FileInputStream and then save it into the DB. I want to
>try and cut out the writing the file to the server bit and do
>an insert in to the db directly. I am using the MultipartParser
>to get the form data. Any help would be much appreciated.

RFC2046 (definition of MIME types) says that it's okay for UAs to put
the content-length of the entity part in the header. It's not required
though.

So, you could try looking for a content-length header in the
MultiPart tool you're using... if you can get the header you can read
use that on your insert.



Nic Ferrier

___________________________________________________________________________
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