Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

File storing

 
georgejk
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic