Which is better datatype for storing Images in 11gr2 Database ?

Can anyone tell me which datatype should be maintained for storing images in database in terms of
1. Space
2. Speed.
And, Is there another way for storing images instead of database ?
Thanks/Regards in advacne.

982164 wrote:
Which one have better speed, database system or file system ?Database is better all around. It is not just a question of speed. It is a question of storage, security, flexibility, scalability, robustness and so on.
If you use ASM and raw devices from a storage array or SAN, how do you get o/s files onto that? (requires a file system on the SAN/array LUNs)
If it is inside the database, database security, concurrency and consistency apply to the image. Outside the database? How do you control who has access? Prevent someone with slippery fingers from accidentally deleting/renaming/moving images files? How do you backup up the image data with the image attribute data in the database?
Having all this inside the database, part of the database, managed by the database, provides you with more flexibility, robustness, and security. After all a RDBMS is a data management system - it is designed for managing data. And that includes managing binary data.
As for speed. Reading a 24MB image is reading 24MB worth of data. Whether that data is read by process A from disk1, or process B from disk2 - the amount of data is the same. So if you want faster I/O, then use faster disks. If disk1 is faster, process A will perform better reading the image than process B. If disk2 is faster, the roles are reversed.
So I/O speed is not a direct function of process A or process B. It is a direct function of the I/O storage and fabric layer. Yes, a process's method of I/O can make a difference (e.g. using block reads not aligned with the physical blocks on disk). But this is more a configuration issue than process doing badly designed I/O calls.
So the speed question is a bit loaded as it has more to do with the architecture and design of the I/O system - and less to do with the process doing that I/O. You can have a highly optimised I/O process doing poorly using an old and slow I/O layer, and poorly written I/O process doing pretty well on a SSD I/O layer.
Databases like Oracle is designed for dealing with data - and thus effectively dealing with I/O. Lots of it. For lots of data. So I/O process design is not a consideration. The database processes will use the I/O layer as optimally as possible and as configured.

Similar Messages

  • Which is better software for brochures and PDF forms ? Photoshop or InDesign ?

    Which is better software for brochures and PDF forms ? Photoshop or InDesign ? and why ?

    If you are going to be making a lot of brochures, with photos, you probably want both. Photoshop to edit the photos, and InDesign to assemble and layout images with text.

  • I am handling logistics department in a company, i am handling more than 100 calls in a day. But my iPhone 4 have only 100 number call history. How to increase my call log size or kindly suggest a better app for storing 1 month call history..

    I am handling logistics department in a company, i am handling more than 100 calls in a day. But my iPhone 4 have only 100 number call history. How to increase my call log size or kindly suggest a better app for storing 1 month call history..

    Here's one:
    https://itunes.apple.com/us/app/callog/id327883585?mt=8

  • Data type for Saving Image in SQL database

    Hi,
        Which is the best way for saving images in the database? Filestream or Varbinary(max)?. Will the Varbinary max comsume much space or it will only take the actual size of the data?

    I've used FILETABLE for storing images in SQL 2012
    You can configure it to have transact and non transact access if you want
    see
    http://visakhm.blogspot.in/2012/07/working-with-filetables-in-sql-2012.html
    Please Mark This As Answer if it solved your issue
    Please Mark This As Helpful if it helps to solve your issue
    Visakh
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Which is better ? for loop or iterator ??

    Hi,
    I have one array list having more than 100 objects in it.
    I have two way to ietrator.
    1.
    for(int i=0; i<list.size(); i++)
    Object o = list.get(i);
    2.
    Iterator i = list.getIterator()
    while(i.hasNext())
    Object o ...
    which is better in performance ??

    Well okay. It's an easy optimization but I guess Sun
    doesn't want to "bail out" people who don't know
    their data structures.It won't always be optimal, though. If you use
    iterators and don't iterate the whole way through
    every time, it would degrade performance. It's hard
    for them to make assumptions about how you will
    access the data. So you punish people who do use it
    properly if you do that.I don't know. The optimization I suggested is isolated to random accesses in the linked list only. Say you access index 5. The node pointer corresponding to 5 is stored and if the next access is index 6 the node pointer you're looking for is pointer.next. There's no need to walk the list from the beginning.

  • Which is better way to place images ?

    I'm making huge catalog with a lot of products.
    Which way is the proper way or better way to do?
    Make individual product image paste on photoshop and bring in to InDesign and lay images (re-sizing smaller, not bigger) and text out.
    or
    Make multiple product images paste on one photoshop document which size to catalog size already, then place into InDesign.
    My thought is, if you don't make images bigger in InDesign, it's easier to make individual images and bring to InDesign and playing around for layout.

    placing many images can go fast, select all (or a part) images you like to import, before placing the first image, hold down COMMAND-SHIFT key, now you can draw a grid for the images, when you are drawing that grid, you can use the UP, DOWN, LEFT or RIGHT keys to increase or decrease the number of collums and/or rows. That way you can place images at high speed.

  • Which approach to use for resizing image

    There are two ways of resizing images as I know:
    1. image.getScaledInstance(width,height,hint);
    Using hint like Image.SCALE_AREA_AVERAGING gives somehwat satisfactory resizing.
    2. static BufferedImage resize(GraphicsConfiguration gc, BufferedImage source, int w, int h, Object hintValue) {
    BufferedImage result = gc.createCompatibleImage(w, h, source.getTransparency());
    Graphics2D g2 = result.createGraphics();
    g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION, hintValue);
    double sx = (double) w / source.getWidth(), sy = (double) h / source.getHeight();
    g2.drawRenderedImage(source, AffineTransform.getScaleInstance(sx, sy));
    g2.dispose();
    return result;
    where the hint passed is RenderingHints.VALUE_INTERPOLATION_BILINEAR ;
    Now which of the two method method should I use-using image.getScaledInstance() or using AffineTranform ? opr is there any other way which is faster but provides good result?
    i am creating an image editor, so the GUI dialog will have oprtion to choose the algorithm. I want the method which provides better result yet faster.
    Tanveer

    http://forum.java.sun.com/thread.jsp?forum=20&thread=522483

  • Better approach for storing Messages ?

    Hello all,
    I am developing a Email module which does resembles yahoo or hotmail.
    To my understanding POP3 dosn't support Folder creation and IMAP does. But, i have to go for POP3 only.
    SO, i thought that i have to go for storing it in database(Message Object) as Byte array.
    so, i have created sent fodler, save folder, draft and custom folders all in database for storing all this message as javax.mail.Message object.
    Since i can't store Message object i have created a wraper class which implemets serialization.
    Now my questions is
    1. is my approach for folder with database is correct ?
    2. if yes, then is it good to store Wraper class as a hole in database. or can i go for divinding the message into parts and store invidualy in database.
    3. if my approach is wrong then how can i go about ?
    awaiting for everybody's reply
    dina

    When through your thinking before :)
    The correct way is to save Message object to disk, i.e cache so we
    don't read from server. To save to database is your choice but it's
    extra overhead. And if you intend client is going to install the
    program on their desktop, database is out of the question.
    The secret is making a simple database design as explain below, like
    Microsoft outlook.pst or look at Netscape cache folders to see their
    design too. Similar...
    Message object is not savable, i.e not implemting serialization but
    their is a way to save the mail messages to disk.
    We use the writeTo method of MimeMessage class to save the whole
    email, including attachments as one whole object stream.
    I use one file for each mail folder, like Microsoft and Netscape does..
    The reason is we might want to copy the whole inbox, which in effect
    is copying the one file to another folder for backup etc...
    Same reason for compressions
    So you might ask, one file, that inefficient isn't it?
    Not really it's how you design it.
    Your mail file should have lookup keys of message id's of your message
    objects. Hence, with message id in a file one can get the ObjectOutputStream in a file with a simple lookup. We use object output
    stream as message class writeTo, writes to output stream, and using
    ObjectOutputStream to store and retrieve makes a whole lot of sense.
    The cahce mail storage should be using a RandomAccessFile and their
    are package classes you can download from JavaWorld to have access
    to writing and reading object streams from a file using the random
    access file. So no need to worry about database as it does the
    hard work for you. Search for RandomAccessFile in JavaWorld and
    dowload that package.
    RandomeAccessFile class is quite differently to other IO classes as
    it does fast seeking, i.e the file points to different positions of
    the file very quickly. Even if you inbox file is 70 megs big, it can
    still handle it very quickly.
    This should help you clear most of the design problems that I also
    ponder for quite some time

  • Table for Storing Images

    Hi all,
    I want to create a table for storing a particular Image file.
    The image and its related details will be stored in the table.
    Later on I want to retrieve it using executable report.So that for a particular Image Name i am entering, it should be displayed in the report.
    Please help me.
    Regards,
    Sunny

    Hi,
      Call the FM BDS_BUSINESSDOCUMENT_CREATEF to upload the images from System.
    codeLOGICAL_SYSTEM
    CLASSNAME PICTURES
    CLASSTYPE OT
    CLIENT 321
    OBJECT_KEY ZIMAGE [/code]
    and the table parameter Files pass
    code DOC_COUNT 00000001
    COMP_COUNT 00000001
    COMP_ID
    DIRECTORY C:\
    FILENAME WINTER.JPG
    MIMETYPE
    [/code]
    now check it.
    here you can upload multiple images inside a loop call the FM.
    Regards
    Kiran Sure

  • Folder for stored images (Portalheader)

    Hello experts,
    could anyone let me know where I can find all the uploaded images for the Portalheader(Masthead). Where can I find the folder who is ressponsible for the administration of the images/background images??
    Thank you
    Regards
    Marco

    Hi Marco,
    You can find those uploaded image files in KM. KM is like your file server but is within the Portal that you can use to manage your files/content/data. Files, content or data exist in KM can be index and search via the Portal TREX (Search Engine).
    SAP NetWeaver Training Overview - SAP Knowledge Management (KM)
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/06fac090-0201-0010-af9c-b67d14558014
    1) Storing images in Portal
    Storing images in Portal
    2) Simple static web pages and images? Store/refernence in KM?
    /thread/378997 [original link is broken]
    3) Upload Image to KM Repository
    /thread/26834 [original link is broken]
    4) showing image located in km folder
    showing image located in km folder
    Hope that helps.
    Ray

  • Which is better graphic for iMac 2007 or MacBook Air 2012

    iMac use ATI Radeon HD 2600 Pro 256 MB and MacBook Air use intel graphic 5000m so which is better?

    Without knowing how you intend to use the computer it's impossible to say, also you are comparing apples and oranges.

  • Is it better to store the image in the database or to use BFile

    Hi all,
    I've a doubt regarding the handling of the image. For example i've the images of the persons amounting to 50,000(the number will be increased in future). So i just want to know which is the better menthod. is it better to store all the images in the database or to store in local OS and use Bfile concept. I'm using Forms 6i and Forms 10g(10.1.2.0.2). OS: Windows XP
    Regards,
    Alok Dubey
    Edited by: Alok Dubey on Nov 14, 2008 5:43 PM

    But the total number (i.e.., 50,000) is scaring me to use the BlobI don't think the database will cause problem just due to the amount of data stored in blobs. Of coure you would have to check which parameters to set for the blobs to make storage efficient. If
    You didn't mention your db-version, in 11G you could also think of using compression and deduplication to deal with the data amount.
    In general i agree with Francois, the best way depends, but in terms of data consistency and easy backup/restore there might be some advantages in using the blob-version.
    hope this helps.

  • Storing images inside the database

    hi,
    we are running oracle 9ir2 on Solaris and would like to know how to go about achiving the following:
    would like to be able to read/write/create/delete bitmap image files in a file share on the same server as the database which would be stored in a table within our schema in the form <filename varchar2>,<image-file-contents blob>
    Is this possible?! If so - any pointers in the right direction would be great!
    thanks,
    p

    To some extent, this was covered a few days ago in the PL/SQL forum. There are some examples of uploading image files to blobs in the database here.
    upload any file (like .DOC,.JDG) to oracle database?
    If you want the images to be visible on a file system, you may want to use BFILE's, rather than BLOB's. BFILE's are essentially pointers in the database to file system objects, while BLOB's are stored completely in the database. The major disadvantages of BFILE's are that
    - the file may be deleted or moved, leaving the Oracle BFILE pointing at nothing
    - the file won't be backed up with the rest of the database
    Going up a level of sophistication, you could store the images using interMedia. This gives you significantly more options for manipulating the images within the database.
    Finally, you can use Oracle iFS (or whatever it's been renamed to today) to provide a file system interface to an Oracle database. This is the most robust of the options, but is also the most work to configure.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Storing Images in a Database

    Hi Oracle Maestros,
    I need your help on how to store images in the database.
    I have requirement like that whenever i press a upload button then it should call a plsql procedure and store the image in the database.
    Please help me how to pass a image path and image in plsql procdure.
    Please help and provide me your guidelines.
    I am using Oracle 10g db version.
    Thank you,
    Sunitha.

    Hi Sunitha,
    check if this helps: the link below is very helpful
    --http://dbaforums.org/oracle/index.php?showtopic=3547
    CREATE TABLE XX_IMAGES
    IMAGE_NAME VARCHAR2(30) primary key,
    MIME_TYPE VARCHAR2(30),
    CONTENT BLOB
    create directory TEST_IMG as '/data-ap/image';
    select * from dba_directories;
    select * from XX_IMAGES;
    CREATE OR REPLACE PACKAGE XX_IMAGES_PKG AS
    PROCEDURE LOAD(filename VARCHAR2);
    PROCEDURE get(name varchar2);
    end;
    CREATE OR REPLACE PACKAGE BODY XX_IMAGES_PKG AS
    PROCEDURE load(filename VARCHAR2) AS
    f_lob BFILE;
    b_lob BLOB;
    image_name VARCHAR2(30);
    mime_type VARCHAR2(30);
    dot_pos NUMBER;
    v_SOURCE_DIR varchar2(30) := 'TEST_IMG'; --'/data-ap/image';
    BEGIN
    dot_pos := INSTR(filename,'.');
    image_name := filename; --SUBSTR(filename,1,dot_pos-1);
    mime_type := 'image/'||SUBSTR( filename,dot_pos+1,length(filename) );
    INSERT INTO XX_IMAGES values(image_name,mime_type,empty_blob() )
    RETURN content INTO b_lob;
    f_lob := BFILENAME(v_SOURCE_DIR,filename);
    dbms_lob.fileopen(f_lob,dbms_lob.file_readonly);
    dbms_lob.loadfromfile(b_lob,f_lob,dbms_lob.getlength(f_lob) );
    dbms_lob.fileclose(f_lob);
    COMMIT;
    END;
    /*=====*/
    PROCEDURE get(name varchar2) AS
    vblob BLOB;
    mime_type VARCHAR2(30);
    BEGIN
    select content,mime_type
    into vblob,mime_type
    from XX_IMAGES
    where image_name=name;
    owa_util.mime_header(mime_type, false);
    owa_util.http_header_close;
    wpg_docload.download_file(vblob);
    exception when others then
    htp.p(sqlcode || sqlerrm);
    END;
    /*=====*/
    END;copy image (test_img.jpg) to the location on the server
    run from unix server:
    chmod 777 test_img.jpgrun the procedure
    BEGIN
    XX_IMAGES_PKG.LOAD('test_img.jpg');
    END;I created report .rdf to display image from the table column.
    Regards
    Imran

  • How do I get a better quality for my image?

    Hi,
    I have created a logo for a business online and I now need to use it for letter heads, business cards etc and when i copy it straight from the internet into a word document it looks very blurry and unproffesional. What can i do to make this better?
    Thanks
    Chloe

    Hi Chloe -
    Did you create the logo using Photoshop CS6? When you place an image on a website and then copy it staight from the website, you risk losing some of the quality of the original file. Outside of placing the logo directly into your word document using the original file, you can maximize the quality of the logo you're placing on your website by using the Save for Web function of Photoshop.
    You can access this function by going to File > Save for Web...
    This will allow you to adjust settings so that you can get an image with a small file size suitable for using on your website while still maintaining a high quality image.
    Here is a short tutorial from Lynda.com on using the Save for Web functions of Photoshop CS6:
    I believe that the blurriness that you are describing is an issue with Microsoft Word, which we probably won't be able to help you much with. However, if you have access to it, Adobe InDesign is an alternative to creating documents that intregrates better with high-quality graphics.
    Good luck!

Maybe you are looking for

  • Clearing of Balance in GR/IR clearing account due to date problem

    >Hi to All, >The scenario is like this :- >The client is making back dated entries for quarter between 01.04.2008 to 30.06.2008 in SAP in July 2008 as the system is getting implemented now. He wants to regularise all the transactions in SAP from 01/0

  • Need to re-image my Dell Venue 8 Pro

    This is a pretty long explanation, but I hope someone can help me! I have a 32gb Venue 8 Pro, and when I got it 12 months ago, I immediately made a recovery "disk" onto a MicroSD card, and deleted the recovery partition to free up space.  I put the M

  • New! Attachments - Upload files as part of a form submission

    You can now add multiple file attachment fields to your forms to collect  files from respondents. Almost all file formats are supported for upload including audio and video (executable and other such file types are not allowed). All files are virus s

  • Second Screen (TV) Only uses Pink-Black Colors!?

    I don't remember when it happend, but for some time now, I have my TV, which I have connected : MiniDVI-DVI -> DVI-HDMI -> TV ... I have it to view movies on and I've used it many many times. But then all of a sudden, reasons unknown, the colors went

  • Ipad 3

    I am having trouble entering new banking information into my Apple ID on my ipad 3. The error msg is information doesn't match our records.