Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / November 2005

Tip: Looking for answers? Try searching our database.

Reading multipart/form-data From a Servlet (File Upload)

Thread view: 
PythonAnimal@gmail.com - 05 Nov 2005 05:01 GMT
I was looking to get a file from a request object.  I do not want to
use third party API's/Classes.  I simply wanted to stream the
request.getInputStream() object or some other way.  Any advice I
searched all through the groups with incomplete code or methodologies.
I simply want to pass a file to another servlet and then have that
servlet reads the files data and do processing.
Thanks in Advance!!!
Andrew Thompson - 05 Nov 2005 05:07 GMT
> I was looking to get a file from a request object.  I do not want to
> use third party API's/Classes.  I simply wanted to stream the
> request.getInputStream() object or some other way.  Any advice I
> searched all through the groups with incomplete code or methodologies.
> I simply want to pass a file to another servlet and then have that
> servlet reads the files data and do processing.

Did you have a question, or were you just musing?
Ross Bamford - 05 Nov 2005 14:41 GMT
>> I was looking to get a file from a request object.  I do not want to
>> use third party API's/Classes.  I simply wanted to stream the
[quoted text clipped - 4 lines]
>
> Did you have a question, or were you just musing?

:D I missed out on that one, didn't I ?

Signature

Ross Bamford - rosco@roscopeco.remove.co.uk

Ross Bamford - 05 Nov 2005 14:40 GMT
> I was looking to get a file from a request object.  I do not want to
> use third party API's/Classes.  I simply wanted to stream the
[quoted text clipped - 3 lines]
> servlet reads the files data and do processing.
> Thanks in Advance!!!

Seems to me you could either use the HTTP PUT request method, or something  
like Commons FileUpload to do it with multipart form data. I think PUT  
would be closer to what you describe.

Signature

Ross Bamford - rosco@roscopeco.remove.co.uk



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.