Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Pro JSP
Pro JSP Advanced JSP coding questions. Beginning questions will be redirected to the Beginning JSP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro JSP 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
Old December 17th, 2007, 08:51 PM
Authorized User
Join Date: Jul 2006
Posts: 36
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to ironchef
Default Serializing photos/files to a database w/ MySQL

Okay, so I am creating a website and when a user creates his/her profile, they have the option of uploading a file to put on their personal page. The only problem is I have no clue how to do this. And please don't use any type of framework. So far I have the form:

<<< Upload.jsp >>>

...some html w/ js validation...

<form action="uploadAction.jsp" name="frmUploadPic" onsubmit="return validate(this)" method="get">

<input type="file" name="fileUploadedFile" accept="image/*"/>

<input type="submit" value="Upload" />


...other html...

So i really just need the code for uploadAction.jsp. It should save it to a database using MySQL, and make it avaliable for later use. Thanks!

P.S. If you could, do you think you can give me the code for displaying it on the user page? I mean, how to retrieve it from the database and display it.

IronChef - http://www.freewebs.com/cool_recipes
<b>IronChef</b> - http://www.freewebs.com/cool_recipes
Old December 19th, 2007, 11:28 PM
Posts: n/a


similar topic already there..

Once you start a working on something,
dont be afraid of failure and dont abandon it.
People who work sincerely are the happiest.

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add 5 more photos js32821 BOOK: ASP.NET 2.0 Instant Results ISBN: 978-0-471-74951-6 5 September 3rd, 2007 12:48 PM
Displaying photos via a database Mike707 Dreamweaver (all versions) 12 April 17th, 2006 12:33 AM
Ridiculus photos shapira BOOK: Professional Crystal Reports for VS.NET 0 March 7th, 2005 08:11 PM
Uploading Photos microchip Classic ASP Basics 6 April 25th, 2004 10:15 AM
Photos in access kev_79 Access 1 July 24th, 2003 02:24 PM

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