aspose file tools*
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
Author

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
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

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] [Bear's FrontMan] [About Bear] [Books by Bear]
 
Consider Paul's rocket mass heater.
 
subject: Reading a textarea as a stream