Storing image binary vs. storing URL

hi experts,
What are the benefits of storing the binary data of an image or an audio file in the database? Would it be much faster if I store the URL string to the file instead?
Thanks.

the sources of the jre classes are in a (about) 20-meg file called src.jar.
Storing "src.jar" takes 7 bytes (or 14, if you use 16bit unicde).
Storing the contents of "src.jar" takes 20,000,000 bytes.
Well, what do you think? Is it faster to save the a name (~ URL) or the entire file?

Similar Messages

  • Blob Problem (storing Images)

    AOA!
    I am working as a developer in a companey. we made a database for HRMS. In this database there is a table EMPLOYEE with a column PICTURE of type BLOB. We were using oracle 8i initially but when we migrate to oracle 9i, we are facing a problem in image storing. The situation is, database showing ur previously stored images (those have stored in oracle 8i) but when we save a new image in that table or any other table it seams to be saved but cannot retrived. I mean when we issue a query
    SELECT EMP_ID FROM EMPLOYEE WHERE PICTURE IS NOT NULL;
    It shows the new inserted records too (thats shows us that picture has been inserted) but when we issue query from a forms6i application it didnt show any image. In case of report, when we try to query a record which newly inserted with image, it says some thing like REPORT IS UNABLE TO SHOW IMAGE FORMATE etc.
    The situation is for all table and all schema which is indicating us may be it is some thing due to oracle 9i headen technique or due to miss managment by us. we dont have DBA in our companey.
    Please help us in this regard. We will be thankfull to you.
    Usman Rana
    Dont reply to above mantioned email my actual email account is [email protected]

    I think that both your SQL is wrong and your intended use is wrong. According to the SQL reference, the following seems to be a simplified definition that seems to match what you're trying to do. UPDATE <table> SET <column> = <expr>. So PROPERTIES should be a <table> of some kind and X should be a <column> of that table. This changes your PreparedStatement to *"UPDATE PROPERTIES SET X = ? WHERE NAME = ?"* Then you can do ps.setBlob(1, b) and ps.setString(2, ...). Because your statement is DML you must do ps.executeUpdate(). So your code might look something like this.
    Blob b = ...;
    String x = ...;
    ps = c.prepareStatement("UPDATE PROPERTIES SET X = ? WHERE NAME = ?");
    ps.setBlob(1, b);
    ps.setString(2, x);
    int i = ps.executeUpdate();
    The executeUpdate() returns the row count (i.e. number of rows) of your DML statement. Try that and see if it helps.

  • 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

  • How to display an image, which is stored in a database?

    Hi All,
    I would like to display an image with Web Dynpro.
    I already know how to display an image which is stored in the path src/mimes/Components/...
    But does anybody knows, how to display an image which is stored in a database (e.g. MaxDB)as a datatype of binary?
    Thanks in advance!
    Regards,
    Silvia

    Hallo John,
    yes, you can use the Image UI element.
    Further you have to create a String for the URL. Implement like as follows:
    IWDCachedWebResource cachedResource = null;
    String imgUrl = null;
    WDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateXYView.IXYElement.PIC_DB);
    IWDModifiableBinaryType binaryType =
                   (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    binaryType.setMimeType(WDWebResourceType.JPG_IMAGE);//Example *.jpg
    WDWebResourceType type = binaryType.getMimeType();
    byte[] file = wdContext.currentXYElement().getPicDB();
    if (file != null)
    cachedResource = WDWebResource.getWebResource(file, type);
    try
    imgUrl = cachedResource.getURL();
    catch (WDURLException e)
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
                        msgMgr.reportException(e.getLocalizedMessage(), true);
    I hope it will help you.
    Regards,
    Silvia

  • How to read the stored images

    hi
    i have images in my table img,
    i want to know how toretreive that stored image

    i have images in my table img
    > i want to know how toretreive that stored image
    How to retrieve it depends on how it is stored? What is the data type? Is it perhaps a blob (large object in binary format)? If so check out the package dbms_lob and read Application Developer's Guide - Large Objects. If not connect to your database using sql plus to publish the data type for the image column from the command "describe img".

  • In MIRO transaction, Where will be the image path get stored?

    Dear Friends,
    In MIRO transaction, Where will be the image path get stored?
    There must be some standard tables/functionality which is maintaining PATH. Please help me to find out the Document Path Details..
    Thanks in Advance.
    Regards,
    Lijo

    Hi,
    this is the content of the oss note (hope it helps):
    Symptom
    Where are the documents that you can create and display using the generic object services (System -> Connections or System -> 'Services for the object') physically stored?
    Solution
    Storing attachments using generic services
    The generic object services offer a separate option via the 'Copy desktop document', 'Connect Internet address (URL)' and 'Create a note' services to add an attachment to a business document.As of Release 4.6C, these services are called 'Create attachment', 'Create an external document (URL)' and 'Create a note'.
    These services should enable the end user to easily enter attachments without document characters (memos).Correspondingly, there is no archiving concept for this type of attachment.
    Technically speaking, notes, PC attachments and URLs are treated as SAPoffice documents and result in corresponding entries in the SOOD and SOFM tables. The contents of the attachments are stored in the SOC3 table.As of Release 4.6B, the contents of PC attachments are stored using the Knowledge Provider (KPro).The KPro allows you to connect an external storage system so that the contents of the PC attachments no longer place a burden on the database. If an external storage system is not connected, the contents of the PC attachments are written to the SOFFCONT1 table as of Release 4.6B.The administrative information necessary to locate the document in the Kpro is in the SOC3 table.
    The content of notes and URLs continues to be stored in the SOC3 table.As these documents are usually small, the additional effort involved in storing them in the KPro is not justified.
    If the PC attachments are not to be stored in the SOFFCONT1 table, you must assign a category to the SOFFPHIO document class using transaction SKPR08. The category is created in transaction OACT and refers to a repository on a HTTP content server. If documents that have already been stored are to be moved to the content server, see note 389366.
    For more information on connecting an external Content Server, see the online documentation for the SAP Knowledge Provider or the information available in the help portal under Basis -> Basis Services -> Business Workplace -> Administration of... -> Information on Documents... -> Configuring an HTTP Content Server for Documents.
    The relationship between the attachments and the business documents is provided via the Object Relationship Service.
    Defining attachments using the archive link
    If an optical archive was connected using the archive link and the corresponding settings for the document type were maintained for the object types of a business document, documents can be stored in the Content Repository, directly from the PC, via the 'Establish relationships for the stored document' or 'Store the business document' service.
    In addition, refer to the online documentation for more information on configuring the archive link.
    Best regards.

  • 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.

  • How can we get the image which is stored in clipboard by labview, is there any functions available like text from clip board

    How can we get the image which is stored in clipboard by labview, i can get the text in clipboard by using invoke node directly.but i cannot get the image, is there any functions or vi available.(image is in Png format)

    The Read from Clipboard method is, unfortunately, limited to text. If the clipboard contains an image then you need to use OS-specific functions calls. This is an example program for Windows. It's old, but it should still work.

  • I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    I am using an Macbook pro in conjunction with a Time Capsule. I back up all my aperture librarys on it, but how can i view these images that are stored on the capsule please ??

    If you want to see what is in a file that is backed up by time machine then you have to restore the entire file. Having said that I have had good experience with Time Machine and individual files... if the file is there then all of it's components are almost for sure there. A way to get around this in Aperture would be to use referenced images. The images then still exist as individual files and can be backed up and restored individually. You would have to do so on a file by file basis though and your album information would still only be saved within the Aperture library.

  • Moving xml file from table stored as clob to table stored as binary

    We have an xml file we are trying to move from a 10g database to 11gR2. The 11gR2 table is stored as binary, and when we try to insert the row into this table across a dblink from the 10g database the table locks and the system will not complete the transaction. I am wondering if this has something to do with the way the files are stored?

    This would be better in the {forum:id=34} forum. Also include the full version of the 10g DB and the SQL being used and which DB it is running on.

  • Displaying server stored images in an air application

    Usually when I go about displaying server stored images in a regular flex application I go about it the following way:-
    - Create a mysql database table on a server which contains image names
    - Create a php file which generates all of the image namesfrom the table as xml and upload this file to the server
    - Create a new flex application/project
    - In the application make a http service which points to my php/xml file and turns this data into an array collection
    - Set the array collection to the dataprovider of a tilelist component so that all of the images will eventually be displayed within it when they are created
    - I set the itemrenderer of the tilelist to an image component which has it's source set to something like source="{'assets/images'+ data.imagename}" with imagename being the field containing the name of the image which is stored in the mysql database table.
    - Make a folder in the app/project called assets/images which will contain all of the images
    - Upload the app to the server and once it runs all the images will be displayed in the application
    - Then any images that are uploaded to the server can also be displayed as long as their names are added to the mysql database
    My question is though how do you get server stored images to display within an Air Application? My air app will be used on multiple machines but I want the images in it to be dynamic i.e. stored on a server and can be changed. How can this be done?

    I'm struggling to figure out how to access the image files when the assets/images folder will be on a server and the app itself will be on the user's desktop whereas usually in the case of a regular flex app this wouldn't mater as both the app and the image files would be on the server together. Is what I'm trying to do possible i.e. displaying images on a desktop air app straight from a server?

  • For best performance what's the size of an image to be stored in database?

    Hi all,
    can any one tell me..for best performance what's the size of an image to be stored in database?
    is it <256kb  or >256mb?
    when i google  we can store image as varbinary(max) and its limit upto 2GB..
    Can anyone exlain it?
    is it performance wise better..
    thanx in advance..
    lucky

    Your question does not seem apparently meaningful. If you need to store a 5MB image in the database, you store a 5MB image, not a 200 KB image or a 200 MB image. Business needs always trumph performance.
    Not surprisingly, the larger the image the more resources it takes to read and write it.
    What is a meaningful question is whether you should use the FILESTREAM feature or not. The cut-off limit here is usually given as 1MB. That is, if your images typically exceeds 1MB you should use FILESTREAM and access the data through Win32
    API. If your images are generally below this size, you should stick to regular T-SQL.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • How to retreive images and xml stored in temporary internet files

    hi all,
                  I am creating an air application that has to work in offline too.so i have decided to retrieve datas it from temporary internet files(is it a rightway or anyother way to do that if so pls suggest).   I have an issues of retreiving images and xml stored in the temporary internet files of the user system ..can anybody help me and give solution for this..
    regards,
    Divya.

    What software are you using to create the website? Perhaps there is some command you can implement on the website to force the entire file to be downloaded. If you use Dreamweaver, you might ask in that forum. If you make the link an ftp link rather than a http link, you might guarantee that the file will be downloaded in its entirety, but the download location will not necessarily be in a temp folder.

  • Storing images in e72 gallery

    Wats app images are all storing in my e72 gallery.let me know how to deactivate this function

    I suggest that you convert the Images to jpg (or png or another format that is understood by a browser). Depending on the creation/read ration (normaly you create an image that is read several times), I suggest doing the convertion before storing it in the database
    // BufferedImage bi is created before...
    // out is your OutputStream to the Blob-field
    com.sun.image.codec.jpeg.JPEGImageEncoder encoder = com.sun.image.codec.jpeg.JPEGCodec.createJPEGEncoder(out) ;
    // get the EncodingParameters
    com.sun.image.codec.jpeg.JPEGEncodeParam jep = encoder.getDefaultJPEGEncodeParam(bi) ;
    jep.setQuality(compress,true) ;
    encoder.setJPEGEncodeParam(jep) ;
    encoder.encode(bi) ;
    // System.out.println("Fertig codiert") ;
    // flush the OutputStream and close it
    out.flush() ;
    out.close() ;you should have an unique identifier for each image, that is kept in the key column(s) of your image table.
    To retrieve the image write a servlet, to which you pass this unique key as a parameter (or several if it is a multi column key) . This servlet should than access the database, select the row, open the Blob field and read it and write the bytes to an OutputStream you get from the response argument of doGet or doPost.
    If you expect large images, you can stream the result, i.e. not read it in fully before writing it to the output stream but rather write each chunk you read to the output stream immediately.

  • Storing Images In Oracle 9.2 Using Forms 6i

    When my database was 8.1.7, storing Images in the database in BLOB field worked fine through Form 6i. But when the database was upgraded to 9.2 then the images are not loaded in the database through Forms 6i.
    Kindly help
    Thanks

    Hi,
    I wanted to do the same thing and faced the same problem. I'm working on Forms 6i and Oracle 9i as backend.
    When an Image item is created on forms, it's datatype is set to Long Raw. You can see this by changing the type of the image item to text item. You'll see that the datatype is Long Raw. The idea of inserting the image would work perfectly if you set the datatype of the column to Long Raw in the backend.
    For using BLOB... I searched alot but all in vain. No answer as to how to handle BLOB in Forms 6i.
    Do let me know if you get a way out.

Maybe you are looking for

  • Not able to configure Act As in OBIEE 11g - The application is logging out

    Hi All, We are trying to configure Act As in OBIEE 11g. The list of users gets populated when I click on Act As. However, when I select any user from the list, the applications logs out. The possible reason could be that OBIEE is not able to authenti

  • HP Pavilion Elite m9040n Desktop and Fire Wire 1394

    I have the above mentioned Desktop. It has a 1394 plugin on the front of case. Does the Pavilion come with all the software to make fire wire work? I backed up my hard drive onto an Toshiba external disk with a USB cable the other day and it took 6 h

  • 4800 SE VTD Problem tv-out

    When i use tv-out (DualView) the image crash in the monitor and tv after some time (+- 10minutes), and i have to reset the computer.

  • Borders around .png links only in firefox

    I just put together a website and when I view it in Safari the menu bar (in the lower left corner) lines up where it should without any borders.  The problem is when I view it in firefox it doesn't line up right and there is a white border around it.

  • Webservices on my Laserjet 1536 dnf printer still can not be enabled

    Hi there, I've come back with the same issue regarding web services. Still not working from a long time. OS: Win7-32bit Latest firmware update (2014-03-05 , Version20140123, 8.66M) Latest software HP ePrint Software 2013-12-18 , Version4.6.60.12747,