Hi, Can anybody tell me how to handle attachments.I am required to handle the attachemnts(multimedia files) posted and then later retrieve and allow others to view it.The Server which I am using is Tomcat and the code to be in JSP. Thanks.
posted 16 years ago
What you have to do is upload the attachments to a certain location on your server and retreive them later from the same. For that you can create a new file for each attachment(name uniquely identifying the attachment as well as associating it with whatever it attaches to) and use an upload mechanism (like jsp smart upload, a free tool) to load the files to the server. Retrieving the files will be easy since there is an unique naming mechanism.