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 October 3rd, 2005, 01:10 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you used this?

Is it an Apache module, or are they classes / servlets you can plug into other apps, I ask as Im using Tomcat standalone at the moment.

Cheers,

 
Old December 10th, 2005, 02:00 PM
Registered User
 
Join Date: Dec 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Pankaj Chaudhary Send a message via Yahoo to Pankaj Chaudhary
Default

Quote:
quote:Originally posted by chrismalan
 About 18 months ago I had to learn how to do this. A few search results talked about the slowness of uploading/retrieving Blobs from databases. One in particular mentioned PostgreSQL, the database I was using. I needed to upload images which had to be available for web pages.

In the end the solution was to write them to disk on the server and store the filename and path as a string in the database. This has worked well for quite a few web-applications. Have a look at http://www.cars4us.com.au All the vehicle photos are stored this way. At present about 1500-2000 for that particular web-application. The thumbnails are created on the server from the uploaded photos.

If anyone is interested I will give code examples. The upload bean can load any number of files and text elements in any sequence.

Chris Malan
pankaj chaudhary
SE
 
Old April 20th, 2006, 11:30 PM
Registered User
 
Join Date: Oct 2004
Posts: 4
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi All
I need to store two images for single record in database uploded from the JSP. The DB has two BLOB columns. I have to display a single record at a time. Can somebody help me that how to display two images from a single record of DB to the JSP..............and if one or both the images are not uploded for that record how to display some error message(like 'No Photo Uploaded') on the JSP page?

Thanks & Regards
Inder Jeet Singh

 
Old November 19th, 2007, 11:02 AM
Registered User
 
Join Date: Nov 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,

Could you please send me the source code ?? my email is [email protected]


Quote:
quote:Originally posted by chrismalan
 About 18 months ago I had to learn how to do this. A few search results talked about the slowness of uploading/retrieving Blobs from databases. One in particular mentioned PostgreSQL, the database I was using. I needed to upload images which had to be available for web pages.

In the end the solution was to write them to disk on the server and store the filename and path as a string in the database. This has worked well for quite a few web-applications. Have a look at http://www.cars4us.com.au All the vehicle photos are stored this way. At present about 1500-2000 for that particular web-application. The thumbnails are created on the server from the uploaded photos.

If anyone is interested I will give code examples. The upload bean can load any number of files and text elements in any sequence.

Chris Malan
[/quote]
 
Old January 6th, 2008, 04:04 AM
Registered User
 
Join Date: Jan 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

I am also in the same Problem...and my task is to upload an image into server folder and its name or location id into mysql Database

I have uploaded the image into the mysql database already but the pblm is when i retrieve it through the ServletOutputStream response.getOutputStream().Write(); it only writes one image

so i decided to go with the ablve said way.... to store in a folder

Can you help me in this issue so that i will be thankful to u

my mail id is [email protected]

Waiting for your code

Thaanks in advance


Thanks
Kirubasekar
 
Old March 12th, 2008, 04:42 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
quote:Originally posted by chrismalan
 About 18 months ago I had to learn how to do this. A few search results talked about the slowness of uploading/retrieving Blobs from databases. One in particular mentioned PostgreSQL, the database I was using. I needed to upload images which had to be available for web pages.

In the end the solution was to write them to disk on the server and store the filename and path as a string in the database. This has worked well for quite a few web-applications. Have a look at http://www.cars4us.com.au All the vehicle photos are stored this way. At present about 1500-2000 for that particular web-application. The thumbnails are created on the server from the uploaded photos.

If anyone is interested I will give code examples. The upload bean can load any number of files and text elements in any sequence.

Chris Malan

This was taken by http://p2p.wrox.com/topic.asp?TOPIC_ID=20969

Really Appreciate if u
can send the code if u have now to [email protected]

Thanks a lot....[email protected]
 
Old March 23rd, 2009, 12:41 PM
Registered User
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

plz any body help me.i have a requirement to upload file from client to remote server and store in data base as well as bring any file
 
Old March 23rd, 2009, 12:47 PM
Registered User
 
Join Date: Sep 2006
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default jspcode needed urgent

plz any body help me.i have a requirement to upload file from client to remote server and store in data base as well as bring any file





Similar Threads
Thread Thread Starter Forum Replies Last Post
uploading a file MunishBhatia ASP.NET 2.0 Professional 4 May 30th, 2007 04:18 AM
Uploading File misskaos Classic ASP Basics 4 October 26th, 2006 02:56 PM
file uploading lakshmi devi Classic ASP Basics 2 September 3rd, 2006 11:52 PM
FIle Uploading [email protected] Classic ASP Basics 3 February 23rd, 2004 12:32 PM
File uploading zabedin Classic ASP Basics 1 July 16th, 2003 08:33 PM





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