For Oracle8i, and if you are going to store the
uploaded files as BLOBs or interMedia objects, you can
use the "interMedia Java Classes for Servlets and
JSPs."  It might be worth taking a look.  it's at:

http://otn.oracle.com/products/intermedia

It basically does the same stuff as Jason Hunter's
package in regards to the multipart/form-data parsing,
and it'll make things easier for you if you want to
write it to the database.  I believe it'll still write
the file to the server _temporarily_ in order to write
it to the database, but I may be wrong on this.

But since you have everything set up with the oreilly
package, I don't think it'll be horrible if you just
read the file and write it to the database in an extra
step, just as long as you remember to delete the file
on the web server afterwards.

I hope this helps.

Jane


--- Vikas Gupta <[EMAIL PROTECTED]> wrote:
> I will be using Oracle 8i.
>
> Vikas
> -----Original Message-----
> From: A mailing list for discussion about Sun
> Microsystem's Java Servlet
> API Technology.
> [mailto:[EMAIL PROTECTED]]On Behalf Of
> Jane
> Trois
> Sent: Friday, January 12, 2001 10:12 AM
> To: [EMAIL PROTECTED]
> Subject: Re: How to Read Attach file content in the
> Servlet
>
>
> Vikas,
>
> What kind of a database do you plan to use?
>
> Jane
>
> --- Vikas Gupta <[EMAIL PROTECTED]> wrote:
> > Hi Jane,
> >
> > Thanks for the help. I used the package u
> mentioned.
> > The problem is like,
> > what if u want to save the file contents in the
> > database. In this case u
> > have to read the file once again and get contents.
> > so what u suggest?
> >
> > Regards
> > Vikas
> >
> >
> >
> > -----Original Message-----
> > From: A mailing list for discussion about Sun
> > Microsystem's Java Servlet
> > API Technology.
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > Jane
> > Trois
> > Sent: Tuesday, January 09, 2001 5:59 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: How to Read Attach file content in
> the
> > Servlet
> >
> >
> > Sorry, no, off the top of my head I don't know of
> > any
> > examples which don't use additional packages.  I
> > would
> > highly recommend using the oreilly package; the
> > major
> > advantage is the MultipartRequest class which
> parses
> > the multipart/form-data content so you don't have
> to
> > deal with that.
> >
> > At any rate, reading the chapter should give you a
> > good idea of what needs to be done if you want to
> > tackle this yourself.
> >
> > Jane
> >
> > --- Vikas Gupta <[EMAIL PROTECTED]> wrote:
> > > Do you have any pointer where there is no
> > additional
> > > packages are involved.
> > >
> > > Thanks
> > >
> > > Vikas
> > >
> > > -----Original Message-----
> > > From: A mailing list for discussion about Sun
> > > Microsystem's Java Servlet
> > > API Technology.
> > > [mailto:[EMAIL PROTECTED]]On Behalf
> Of
> > > Jane
> > > Trois
> > > Sent: Tuesday, January 09, 2001 4:05 PM
> > > To: [EMAIL PROTECTED]
> > > Subject: Re: How to Read Attach file content in
> > the
> > > Servlet
> > >
> > >
> > > This has been mentioned in the past but chapter
> 4
> > in
> > > Jason Hunter's Servlet Programming book covers
> > this
> > > in
> > > great detail, plus he includes a handy package
> > which
> > > parses multipart requests and makes life easier
> if
> > > you
> > > want to do file uploads (which I'm guessing you
> > may
> > > want to do.)  http://www.servlets.com has a
> > download
> > > for the package.
> > >
> > > Jane
> > >
> > > --- Vikas Gupta <[EMAIL PROTECTED]> wrote:
> > > > Hi,
> > > >
> > > > I have a HTML file in which I am using
> following
> > > tag
> > > > <input type=file name=filename value=>
> > > >
> > > > In the browser user can select the file by
> > > clicking
> > > > on the browse button.
> > > >
> > > > Now when user submit this information I want
> to
> > > read
> > > > the content of the
> > > > files. What are the possibles way to it.
> > > >
> > > > Thanks
> > > >
> > > > Vikas
> > > >
> > > >
> > >
> >
>
___________________________________________________________________________
> > > > 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
> > >
> > >
> > >
> __________________________________________________
> > > Do You Yahoo!?
> > > Yahoo! Photos - Share your holiday photos
> online!
> > > http://photos.yahoo.com/
> > >
> > >
> >
>
___________________________________________________________________________
> > > 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
> > >
> > >
> >
>
___________________________________________________________________________
> > > 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:
>
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/

___________________________________________________________________________
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