Best way to store image? will be a lot of image files

I am working on a new project which involve user upload image to server and then do searching and view image. there will be a lot of image files. image will be displayed in web page as thumbnails, so there may be resized pic stored in server or resize on the fly.
What is the best way to store image like this? as files in file system? database? etc...?
Thank you very much

Hi,
When you are asking about the "best method for BDB", you should first read this: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/am_conf/select.html
When you know exactly what are the differences between the BDB access methods, then you will be able to figure out which is the best method for your requirements or to ask a more specific question.
Regarding the second problem, you should read about isolation and degrees of isolation: http://www.oracle.com/technology/documentation/berkeley-db/db/ref/transapp/inc.html
Regards,
Bogdan Coman

Similar Messages

  • Best way to store documents and images in a web application

    All,
    Which is the best way to store the documents, is it Oracle DB or file system or Virtual Directory Mapping in weblogic.
    We are working on a Internet based application into CRM domain, there is a requirement where user can upload and download the documents (.pdf, .xls, .doc etc). Right now we are storing images in the DB. Is it advisable to store all the docs in database and will it scale up in future.
    PS: There is no scope for using content server because of business constraints.
    Please let me know, thanks in advance.
    Regards
    Girish

    Best way to store depends entirely on requirements.
    Why store it in the database when it for example is purely static images (e.g. used as part of the web GUI)? Instead that can be served up directly by a web server - which is specifically designed for this.
    If it is more than just an image, but include tags (non spatial data attributes), requires transaction control (e.g. updating an old passport/id photo with a newer one), auditing, filtering/searching and ordering, requires backup, needs security and access controls, and so on - than that is most definitely a database function.
    So the issue is not what the binary file is or contains - an image or pdf or something else. It depends entirely on how it is to be used and what the business requirements are in this respect.

  • Best way to store a lot of image files??

    I am working on a new project which involve user upload image to server and then do searching and view image. there will be a lot of image files. image will be displayed in web page as thumbnails, so there may be resized pic stored in server or resize on the fly.
    What is the best way to store image like this? as files in file system? database? etc...?
    Thank you very much

    Since seraching is invloved use a database. A file system is not good place to search in.
    Using a database will allow you to store additional data as well such as comments about the images or the ratings given by the users.
    Of course you will have to develop a propper table structure for this.
    Also do not generate thumbnails all the time instead cache them once they are created. Atleast the thumbnails of the images that are displayed often.
    Also store the last updted dates with the images so you can loow the images to be cached by the clients or the proxy server. That will reduce repatitive requests for the same image from same client.

  • Best way to store lots of tile images

    Hey, In my game I'm gonna need to store probably thousands of tile images. They are all in .png format, and I am wondering the best way to store the image data. I could of course keep them in some folder called images, and then have thousands of files...but then people could jack them, and plus that would be inneficient use of space??? right?
    What is the best way to store them??
    thanks

    Anything can be "jacked". The other possible ways are storing them in some sort of archived file like a JAR or ZIP or GZIP. The only way to even remotely ensure no one will "jack" your images would be to store them in a compressed format which you created. Which would entail creating your own compression algorithms. Have Fun! :)
    Seriously though, I wouldn't worry too much about the images and people "jacking" them. As far as inneficient use of space, I personally wouldn't worry about this either unless your app will be delivered via WebStart or Applet. Then load time could be an issue. You could use lazy downloading though and download the images when they are needed.
    HTH
    Gregg

  • Best way to store digital images?

    I have all of my digital images for personal and business loaded in my home pc (Windows XP, sorted in a Kodak Easyshare program). Recently purchased a laptop. All of my information from the PC was transferred/copied onto the laptop. However, I want to store the images on something separate from the laptop. Approximately 10GB worth of images.
    What is the best way to store them for easy access to view and copy/print or for uploading to a site to print out pix for photo albums, etc.
    Thanks!

    TheLexMachine wrote:
    empty317 wrote:
    I have all of my digital images for personal and business loaded in my home pc (Windows XP, sorted in a Kodak Easyshare program). Recently purchased a laptop. All of my information from the PC was transferred/copied onto the laptop. However, I want to store the images on something separate from the laptop. Approximately 10GB worth of images.
    What is the best way to store them for easy access to view and copy/print or for uploading to a site to print out pix for photo albums, etc.
    Thanks!
    The best way to store your images is to get a high-capacity flash memory device, preferably an SDHC card because they have a lock switch that prevents writing when the card doesn't need to be written to, and use that to archive your files. Simply keep it inside a memory card case in a safe place, such as a personal lock-box, and you're good to go. You can take that card to any photo kiosk or someone's home to do whatever you want to with the files.
    Good point, I'm so ingrained against that particular solution due to the sheer amount of images I have (I can easily fill up an 8GB SDHC in 1-2 days when airshow season rolls around, plus I have an HD camcorder that takes about 8GB/hour), but since the OP only has 10GB total, making copies to 2-3 16GB SDHC cards and storing them in safe places would be an excellent approach.  Choose one location (maybe the desktop or the laptop's hard drive) as a "master" and periodically back up to all the SDHCs.
    Just make sure to choose a "master" storage location or you'll go insane trying to keep things synchronized.
    Online storage solutions such as Dropbox and similar services might also be an option for only 10GB of data.
    *disclaimer* I am not now, nor have I ever been, an employee of Best Buy, Geek Squad, nor of any of their affiliate, parent, or subsidiary companies.

  • Best way to store many images at once is?

    I am dealing with a number of image files at once (10 - 100) that are small in size (5-300kb) and I want to be able to retrieve them quickly after I save them to disk. I want to store them all in an array and save the array. What is the best way to store them as so I can save space on my disk and load them back in quickly when I need them. I tried using an array of ints and that is slow to load and takes a lot of space on disk.
    Thanks

    maybe this is what you want, from javadocs,
    public class MediaTracker
    extends Object
    implements Serializable
    The MediaTracker class is a utility class to track the status of a number of media objects. Media objects could include
    audio clips as well as images, though currently only images are supported.
    To use a media tracker, create an instance of MediaTracker and call its addImage method for each image to be
    tracked. In addition, each image can be assigned a unique identifier. This identifier controls the priority order in which
    the images are fetched. It can also be used to identify unique subsets of the images that can be waited on independently.
    Images with a lower ID are loaded in preference to those with a higher ID number.
    Here is an example:

  • What is the best way to store and search 2D data

    Hi,
    There is a set of data (~10k records ) in 2D dimension.
    like this :
    Col 1, Col 2, Col3....
    What is the best way to store and search those records ?
    Thanks in advance
    Wilson

    Hi,
    Either userObjet[][] if you know how much data you have, and the data size is fixed, or use a list of lists. E.g. A Vector of Vectors (some will probably say that you should use an ArrayList instead, and that could be the case, but it sounds like you would want to display the data later on, and a DefaultTableModel (for JTables) uses a Vector as data holder).
    Kaj

  • What's the best way to store my info externally

    I have recently bought my first Macbook Pro 13" with 2.4 Ghz. I am currently using it for my own business and do tend to get a lot of files together. I went to look at "About this Mac" and have already got 369 Gb used up in storage... I have no idea how I have done that as I have hardly downloaded any apps on this computer besides the ones that were on here. I did download Vware Fusion 4 as I have a reservation system which I used to run on my pc and need to have this on here too so perhaps that software takes a lot of space.
    Could anyone advise on which is the best way to store my info externally, will any external harddrive do, or do you need a special one for Apple or Macbook pro. I am just asking as I have no idea and prefer to buy the right one straight away.
    Any help would be much appreciated !
    Thanks, Sara***

    Sara,
    The most reliable method is to use an external hard drive.  Some are better than others, but most will work.
    For the least amount of setup pain, I prefer to deal with the Mac specialists at OWC, http://www.macsales.com as they stand behind their products with great warranty and support.  I have one of their Mercury Elite Pro 2 TB drives that has multiple interface capability so you can get a fast interface for data transfer.
    Take a look at what they offer and see what fits your needs.  If you have more questions about doing thin, just ask on here.
    Ralph

  • Best way to store data from a plot on hard drive

    I have a DAQ set-up that will be on 24/7 for several days, and the whole time it's streaming data to an XY-Graph with a limited buffer.  My question is, what's the best way to store my plot data in such a way that I can empty out my plot every few hours but if I want to pull up data from a few hours ago I would just have an option on my initial VI to view any old saved plot data.
    Basically, I'm trying to not overload my RAM with all my plot data so I'd like to save it to the hard drive while my VI is running, and only display, for example the last 8 hours worth of data... I've been looking at TDMS, but I'm not sure if that's the right solution.  
    much thanks!

    Hi,
    You could save your data using TDMS as well as ASCII to simply load it in another application later.
    Attached VI shows you how to save your data to a File after a certain amount of iterations, you can combine this then with your code and a timestamp.
    Christian
    Attachments:
    Save to new file every N samples.vi ‏20 KB

  • Best way to store big amount of data

    Hi, i need to store a big amount of data, written in a txt its size is almost 12 mg, anyway it depends on the computer it runs, beacause what i want to store is all the shared files in a computer.
    Which is the best way to store it? Array string? textfile? List? I don�t need the data after the app close.
    Thanks

    Well, then which is the best solution? LinkedList or
    Tree? i only need to store the full path.
    What i didn�t say, my fail, is that i need to search
    for a file name once i have stored them...For searching, LinkedList will be very slow if it's very large. I think the same is true of javax.swing .tree.DefaultTreeModel, which is the JDK's only tree implementation. I don't know what Jakarta-collections has - it's possible they have a tree that offers fast searching. If you want to stick to the standard Java libraries, you'll want a Set for fast searching. TreeSet keeps the entries in sorted order. If you also need to display them as a tree, you can keep them in both a Set and a tree. If you don't have enough memory to do that, then displaying the whole tree isn't going to be useful to the user anyway, so rethink your goal.

  • Swapped Hard Drive - Best Way to Store original HDD?

    What is the best way to store my swapped out HDD?
    I put it in one of these silicon cases:
    http://eshop.macsales.com/item/NewerTech/HDANTISH25/
    Can I then put it in a zip lock bag? Will that cause moisture?
    Any thoughts or advice will be greatly appreciated!

    OWC has some great enclosures!
    http://eshop.macsales.com/item/Other%20World%20Computing/MEQM0GBK/
    or
    http://eshop.macsales.com/shop/USB2/OWC_Express
    Put in one of these and use it as a back up drive or extra storage!  That is what I do whenever I upgrade my internal drive.

  • Best way to store an AES Key

    Hello,
    I'm currently developing a little "file vault" , with graphical interface, to enable end users to encrypt/decrypt some of their personal files on teh filesystem
    I'm currently using AES as Cipher :
    the first time the user launches the UI, i generate an key for AES then store it (encoded as Base64) in Registry (if Windows) using java.util.Preferences
    Doing this, later, the application automatically retrieves this key for decrypt/encrypt tasks.
    Is this the best way to store this kind of key.
    I currently ask myself if i couldn't (as second option) leave the user choose a key first : the user should then retype this key at every launch of the application to be able to decrypt/encrypt his files.
    What is the best way?
    Laurent

    As far as i understand in the document PKCS#5 , to do my application, i should use the PBES2 (password based encryption scheme 2), respecting the following steps :
    Encryption:
    1) Select a Password (P) : this password is not stored on the system, the user will provide it to the application for every operation (dec / enc)
    2) Select a Salt (S) : i wonder if first time i should use a pseudo random generator, then store the Salt on the System (where on Windows or Linux?...)
    3) Select an iteration Count (c) : should be > 1000
    4) select a derived key Length (dkLen)
    5) Create a derived key (DK) using the formula : DK = DKF(P,S,c,dkLen)
    6) Encrypt clear Message M using the Derived Key (DK) an the algorithm AES, to obtain the Cipher Text (C)
    Decryption:
    Repeat steps 1 to 5
    6) Decrypt Cipher Text (C) using DK and AES algorithm to obtain the clear message (M)
    Does it sound good for you.
    My question is always the same :
    Should i hard code in my application the Salt ,the Iteration Count, and the derived key length or , should i first generate a pseudo random Salt, then store it on the file system (Windows Registry, File)
    Any idea?
    Laurent
    Message was edited by:
    Laurent_Bois

  • Best way to store video's in itunes

    Hi All,
    Just wanted to get some thoughts on what you feel is the best way to store music videos in itunes.
    Would you either:
    1. Have music videos that come with CD’s tagged and retained in the same album with the music.
    Eg
    Track 1 of 3 – Audio
    Track 2 of 3 – Audio
    Track 3 of 3 – Music Video
    or
    2. Have music videos stored under their own “album”. That is, Track 3 above not linked to the audio tracks on the same CD, so that you effectively create an “album” with all your music videos.
    I know either way will do, but wanted to know what way was working well for the masses!
    Thanks

    ok, maybe im not saying it right. I just want to store my movies in itunes, I know how to import them there i was just wondering if i can create folders for all those video clips in itunes? Im tired of storing them all in imovie and creating new events each time i upload videos?

  • Best way to store tv shows when in Ireland

    Hi all,
    I just bought an iMac and a WD My Book Live. The first cause my old laptop when to the great binary cloud in the sky, the second cause I want to be able to consolidate my media. Over the years I have ripped by CDs and DVDs so when the time came I could stream all my media through out my house and devices.
    Because I will be using the Mac primarily for the forseeable future, I have  moved my music and movies into their respective iTunes folders. I have started to move my TV shows. But when you add the folder in iTunes I am still only getting the lovely iStore Advert telling me to start looking.
    Is it because my store is the Irish iTunes Store?
    So does anyone have some advice as the best way to store my TV Shows and get them to show in iTunes.
    Cheers,
    Adanmh

    Thanks for your help.
    emeraldthree - I have tried adding the folders by two ways to no avail:
    Dragging the folders from Finder to my Library
    By clicking File > Add to Library
    Nothing Happens either way.
    Chris CA -  By the "lovely advert" I mean the screen shown when I have added my TV show files and I click on the TV Shows  Link in my iTunes Library I get
    The videos also don't show in my Movies area either. But are there in my TV Shows Folder on the Media Drive.
    Is this the best way to store my TV Shows to get them to show in iTune?
    Thanks

  • Best way to store price

    Hi,
    Does anyone know what is the best way to store prices in MySQL, and then how to format it on the output page.
    Thanks in advance

    Hi Jose,
    that depends on your prices:
    a) if they will always be integer
    (e.g. 120000 EUR), store them in an INT(x) column
    (where x is the max. amount of digits), and use PHP´s "number_format" function to display them as e.g. (will show as 120.000) EUR
    b) if your prices will contain a decimal point
    (e.g. 12.99), the column could be defined as e.g. FLOAT(x,2)
    (where x is the max. amount of digits preceeding the decimal point, and 2 define a fixed amount of digits after the decimal point). In order to display those prices differently on a page, PHP´s "number_format" function has a variety of options, e.g. (will show as 12,99) EUR
    Günter Schenk
    Adobe Community Expert, Dreamweaver

Maybe you are looking for