File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes suggestions wanted Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "suggestions wanted" Watch "suggestions wanted" New topic

suggestions wanted

daman sidhu
Ranch Hand

Joined: Aug 19, 2000
Posts: 184
Hi Guys,
I have a situation, hope you might be able to help me out.
I have a table in oracle in which i store a picture file as a blob object, i use an EJB which takes a byte stream as an argument for the same column. NOw i have to create a administrative GUI by which the user will be able to upload the picture and provide information for the other columns also.THe form will have a browse button for the file selection and corresponding upload, but for this the form send multipart data and i will have to use a datainputstream to read it, which will now contain both the image file as well as other table related information.How will i be able to seperate the content from one another ie the file from the other fields the user fills in because using the multipart data wont allow the normal request.getParameter syntax.And i cannot submit 2 different forms as another option because i need the other info user submits to get the handle on that row.
Lookin forward to your response.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
Jason Hunter has a get tool for doing file uploads that he wrote for his Servlets book. Go to to download it. No use inventing someone else's wheel.
subject: suggestions wanted
It's not a secret anymore!