File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSP and the fly likes Reading a textarea as a stream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Reading a textarea as a stream" Watch "Reading a textarea as a stream" New topic

Reading a textarea as a stream

Dilshan Edirisuriya
Ranch Hand

Joined: Apr 22, 2006
Posts: 299
In my jsp page i have several text fields and a textarea. The text area is an editor window component. It can include text files as well as image files. so i want to read that text area as input stream and save in the database as a blob. How should i read the text area only as a stream.

Dilshan Edirisuriya SCJP1.4, SCWCD1.4, SCBCD 5
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63865

HTTP make no such provisions. When the form is submitted, the value of the text area will be submitted as a string value just like any other control.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Reading a textarea as a stream
It's not a secret anymore!