Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old December 10th, 2004, 07:56 AM
Registered User
Join Date: Dec 2004
Location: Mumbai, Maharashtra, India.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to nishant_k
Default attachments

can some1 please help me with attachments wht i want to do is attach files(which i can do) and display it on the next page. i'm not even getting this that how to store the attached files in database because they can be of any format a zip file a wrd format etc. please help me
i need ur help soon............

  #2 (permalink)  
Old December 10th, 2004, 04:15 PM
Friend of Wrox
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts


As explained before you will have to parse the data from the POST method to reconstruct the file. The format of file is irrelevant, the program you write should reconstruct whatever the file was originally.

What you need to do now is:

1 Create an HTML form that uses the post method as described by another user in your previous post.

2 Write a servlet to parse and reconstruct the file on your SERVER.

3 Once the file is reconstructed you can save it to file on the server, or put it into a database.

These are the steps you must take, you cannot simply 'attach' a file, this is not E-mail!

You send a data stream to the server, you need to convert this back to file.

  #3 (permalink)  
Old December 10th, 2004, 04:19 PM
Friend of Wrox
Join Date: Jul 2004
Location: , , .
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts


I mistook you for another user, there is another thread on this topic:


Similar Threads
Thread Thread Starter Forum Replies Last Post
Regarding Attachments mvnaidu ASP.NET 1.0 and 1.1 Professional 2 June 26th, 2006 07:49 AM
GMail Attachments prophet Javascript How-To 3 January 24th, 2006 03:03 AM
Email with Attachments echovue Access 2 March 22nd, 2005 10:36 AM
attachments lily611 Forum and Wrox.com Feedback 1 June 15th, 2004 08:37 AM
Email w/Attachments aingalsbe PHP How-To 1 June 25th, 2003 04:48 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.