🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1240

Re: How to get content of a text file from client post by web page

#1240
From: Angry Orca
Date: Wed, 17 Apr 2002 03:37
28 lines
2018 bytes
"Joi Ellis [TeamB]" <joi@aravox.com> ??????:3cbbf40b_1@dnews...
> > inputstream!! What should I do??
>
> I think they mean that you have a request object, and you do something
like
>
>   BufferedReader myfile = request.getReader();
> or
>   ServletInputStream myfile = request.getInputStream();
>
> depending upon the type of data you expect to be receiving.
>
> --
> Joi Ellis (TeamB)               http://www.teamb.com/
> No direct email, please.
> For best results, post on news server newsgroups.borland.com!
> Newsgroup Guidelines: http://www.borland.com/newsgroups/guide.html
> Only posts which violate the rules in guide.html are subject to
cancelation.

Hi, Mr. Ellis:

Yes, that is what I want to do.
The problem is the " BufferedReader myfile = request.getReader(); " does not
work. It would call a null pointer exception because the object myfile has
not been constructed. But I donot know how I can construct it. :(
Thanks.
Technical Details
Message-ID: <3cbcedfc_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rt.ru!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3cbbece2_1@dnews> <3cbbf40b_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,6b7f0acc204b911f
X-Google-Attributes: gidf74b3,public
X-Google-Thread: 1089d0,6b7f0acc204b911f
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2002-04-16 20:40:14 PST
From: "Angry Orca" <luke@email.newpalm.com>
Newsgroups: borland.public.jbuilder.java.api,borland.public.jbuilder.java.language
References: <3cbbece2_1@dnews> <3cbbf40b_1@dnews>
Subject: Re: How to get content of a text file from client post by web page
Date: Wed, 17 Apr 2002 11:37:31 +0800
Lines: 30
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 202.108.48.186
Message-ID: <3cbcedfc_2@dnews>
X-Trace: dnews 1019014652 202.108.48.186 (16 Apr 2002 20:37:32 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!supernews.com!newsfeed.gamma.ru!Gamma.RU!newsfeed.rt.ru!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!dnews