This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes EJB and other Java EE Technologies and the fly likes File storing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "File storing" Watch "File storing" New topic
Author

File storing

georgejk
Greenhorn

Joined: Jul 29, 2002
Posts: 24
Hi all
I would like to clarify one thing. If i want to store some image from the client side to the system, which will be the better solution as we cant do the IO operation in bean. Is it a better way if i use one servlet and proceed? Instead of storing to the disc, we can use blob to store that image to DB. Please suggest your valuable comments on this.
Thanks
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
It depends on your situation. Storing to the database is a definite option but I would hate to be loading images from the database on each request. If they are images that are rarely accessed but need to be cataloged then sure.
Chris Mathews
Ranch Hand

Joined: Jul 18, 2001
Posts: 2712
One more thing georgejk...
Please take a look at the JavaRanch Name Policy and edit your display name appropriately.
[ October 26, 2002: Message edited by: Chris Mathews ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: File storing