any ideas on how images are stored in social websites like facebook/myspace. Its not stored in filesystem i believe. What would be the best approach to store images if have to develop a website like facebook application using j2ee .
i have stored images in db and displayed in on JSP using servlets for my current project . Is it a good approach if there are millions of users uploading images ?
I'm just curious :-)
thanks,
Rajeev
SCJP, SCWCD, SCBCD, Oracle Certified Professional (SQL n PL/SQL)
Jeremy Wilson
Ranch Hand
Joined: Feb 18, 2003
Posts: 166
posted
0
Anytime I have stored images for use for applications of mine I have stored them as blobs in an oracle database. That way you can use additional attributes in the table for indexing.
Jeremy Wilson
Rajeev Ravindran
Ranch Hand
Joined: Aug 27, 2002
Posts: 455
posted
0
i agree with that DB approach but if there are millions of images, is it the right way to do it ? i was wondering if there is anything much better which im not ever aware of.
Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35222
7
posted
0
I've only ever used file system storage, meaning the relevant DB record contains all the information needed to access the image file on a file server.
You'd need to think about how to handle synchronization in the case where more than one person has write access to an image (not likely in the Facebook example, but often the case in image-handling applications).
we use a netApp server to store images and access them using HTTP to display on the screen.
The paths are stored in a DB
Eric Pascarello
author
Rancher
Joined: Nov 08, 2001
Posts: 15357
6
posted
0
This has nothing to do with PD. Moving to General Computing
Eric
Rajeev Ravindran
Ranch Hand
Joined: Aug 27, 2002
Posts: 455
posted
0
thank you all for the replies !! its really informative..
no, there is no need for synchronization, no 2 people will be editing an image at same time. I was just curious to know about the image storing approach used by various websites which has millions of unique daily users.