Insert/update image in Database from C:\ drive, In BLOB Field using PL/SQL

is Any Body have a experience of Image file Saving, updating and getting from Table, i want to save it in Database not in any Folder or Link, its Urgent! i want to insert image in Table having BLOB field from C:\test.jpg

Try the following link, some useful material :-
http://www-rohan.sdsu.edu/doc/oracle/server803/A50580_2/img_uses.htm

Similar Messages

  • Oerror while inserting in to 11g database from SOA suite 11g db adaptor

    Hi,
    I am getting following error while inserting in to 11g database from SOA suite 11g database adaptor. Can you please help me on this.
    "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown.
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'insert' failed due to: DBWriteInteractionSpec Execute Failed Exception. insert failed. Descriptor name: [LoggerDBInsert.LoggedError]. Caused by java.sql.SQLSyntaxErrorException: ORA-01722: invalid number . ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution. ORA-01722: invalid number 1722
    Regards,
    Bharat

    It looks like you try to insert a string-value in a number-column.
    can you check all your assign and their values before you invoke the db-adapter, then you should be able to narrow down the problem.

  • How to insert the image or logo into the table as a field in webdynpro abap

    Hi Friends,
    Please tell me how to insert the image or logo into the table as a field in webdynpro abap.........

    Hi Alagappan ,
          In your view layout you take table UI element and then you bind it with some context nodes.
    The attributes of your nodes comes as a field.
    Now in these fields you can set various properties and image is one of them.
    Go to ->
    1. View Layout -> Right Click on ROOTUIELEMENTCONTAINER -> INSERT ELEMENT -> TABLE
    2. Right click on table -> Create Binding.
       Here you have to bind it with the appropriate context node.
    You will get two properties here
    a- Standard Cell Editor :- ( make it image )
    b- Standard properties :- ( If required set image properties ).
    3. If you want put image from out side then import it as a mime object and set the source of your table field ( used as a image )
    also have a look :-
    [Image Properties|http://help.sap.com/saphelp_nw04/helpdata/en/f3/1a61a9dc7f2e4199458e964e76b4ba/content.htm]
    Hope this will solve your problem.
    Reply if any case of any issue.
    Thanks & Regards,
    Monishankar C

  • How to insert data from *.dmp file to  oracle 11g using Oracle SQL Develope

    hi
    i backup my database using PL/SQL developer and made *.dmp file
    how to insert data from *.dmp file to oracle 11g using Oracle SQL Developer 2.1.1.64
    and how to make *.dmp file from sql*plus ?
    thanks in advance

    Pl/Sql developer has a config window, there you choose the exec to do the import/export.
    Find it and his home version, it may be exp or expdp, the home version is the version of the client where the exp executable is.
    Then use the same version of imp or impdp to execute the import, you do not need to use Oracle SQL Developer 2.1.1.64. If you want to use it, you must have the same version in the oracle home that exp/imp of sql developer use.

  • Hi, I would like to create a database from my numbers spreadsheet and create reports (like SQL). Is there a way?

    Hi, I would like to create a database from my numbers spreadsheet and create reports (like SQL). Is there a way?

    Numbers is a lightweight spreadsheet.  If you know sql you will know that it can handle many queries and is a real databases that can handle many thousands of records.  Number is not the correct tool.  You can make something that does something like a query but it is not truly a query.
    Can you share anything about the specific application and how much information there is in each record?  How many records (rows)?

  • I'm wondering if I should update to firefox 5 from firefox 3.6? I use Zotero for my dissertation research and I have lots of stored info in Firefox 3.6 like frequent flier numbers that load automatically that I don't want to lose. Suggestions?

    I'm wondering if I should update to firefox 5 from firefox 3.6? I use Zotero for my dissertation research and I have lots of stored info in Firefox 3.6 like frequent flier numbers that load automatically that I don't want to lose. Suggestions?

    My advice is to stick with Firefox 3.6.x for a while yet, it is still supported.
    Otherwise, see the Zotero website for advice about their program and updating to Firefox 5.0 (or 6.0 when it is released in 3 weeks).

  • How can i return object from oracle in my java code using pl/sql procedure?

    How can i return object from oracle in my java code using pl/sql procedure?
    And How can i returned varios rows fron a pl/sql store procedure
    please send me a example....
    Thank you
    null

    yes, i do
    But i can't run this examples...
    my problem is that i want recive a object from a PL/SQL
    //procedure callObject(miObj out MyObject)
    in my java code
    public static EmployeeObj callObject(Connection lv_con,
    String pv_idEmp)
    EmployeeObj ret = new EmployeeObj();
    try
    CallableStatement cstmt =
    lv_con.prepareCall("{call admin.callObject(?)}");
    cstmt.registerOutParameter(1, OracleTypes.STRUCT); // line ocurr wrong
    //registerOutParameter(int parameterIndex, int sqlType,String sql_name)
    cstmt.execute();
    ret = (EmployeeObj) cstmt.getObject(1);
    }//try
    catch (SQLException ex)
    System.out.println("error SQL");
    System.out.println ("\n*** SQLException caught ***\n");
    while (ex != null)
    System.out.println ("SQLState: " + ex.getSQLState ());
    System.out.println ("Message: " + ex.getMessage ());
    System.out.println ("Vendor: " + ex.getErrorCode ());
    ex = ex.getNextException ();
    System.out.println ("");
    catch (java.lang.Exception ex)
    System.out.println("error Lenguaje");
    return ret;
    Do you have any idea?

  • Insert Image in database from Java Prog, but some excp. occured

    I want to insert the content of an Image file into my database, but I am getting the below exception.
    I am reading the file and taking the content into a string. The string displays perfectly (if I print the string using system.out.println statement) but while inserting into database it gives problem.
    Following is my code::
    import java.io.*;
    import java.sql.*;
    public class ImageInsert
    public static void main(String args[])
    try
    DataInputStream dis = new DataInputStream(new FileInputStream("reshmi.gif"));
    String str="" , ImageContent="";
    while((str = dis.readLine()) != null )
    ImageContent = ImageContent + str;
         //System.out.println("Content :"+ str);
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:somedata" , "sa" , "");
    Statement st = con.createStatement();
    String as = "INSERT INTO TESTIMAGE (ImageFile) VALUES(\"" + ImageContent + "\")" ;
    int q = st.executeUpdate(as);
    System.out.println("The data Inserted:"+q);
         }catch(Exception er) {er.printStackTrace();}
    // end of code
    Where as if I insert it manually in my SQL Server executing the insert statement it inserts the image perfectly:
    Following Exceptions I am receivng :
    *********** BELOW IS THE EXCEPTION********
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Unclosed quotation m
    ark before the character string 'GIF89a��'.
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(Compiled Code)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:4246)
    at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:1172)
    at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:206)
    at sun.jdbc.odbc.JdbcOdbcStatement.executeUpdate(JdbcOdbcStatement.java:163)

    It looks like imageContent contains a quote character, making your statement invalid. Something like
    Insert into .... value("<some chars>..."...<some chars>")
    Using single quotes will not resolve this problem since imageContent could also contains single quote chars.
    Try using BLOBs instead strings. I don't know if SQLServer supports BLOBs but Oracle does.
    JCG

  • Can i insert data in my database from a web intelligence report?

    if that's not possible,can I do it from a stored procedure based Universe or with a derived table? Does BusinessObjects in general allow me to execute statements to insert data in my database?

    Hi Erika,
    afaik it is not possible write back to database from web intelligence .
    from dashboards with web services you can achieve this.

  • How to insert data into local database from oracle server

    I am new in C#.
    I am trying to design a local database in my C# project and I am trying to sync my database with our oracle server. I can login using oracle server. But I can't insert data into my local database from oracle server.
    anybody can help me ...............
    thanks..............................

    You can use SSIS package for that
    Start a new Integration Services project in Business  Intelligence Development Studio/ SSDT. Add a new SSIS package with a data flow task. Add a OLEDB source to connect to Oracle server and add a OLEDB Destination to connect to your local database.
    Select tables for source and destination. On executing package source data will get transferred to your local database.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Update 2 different databases from Timesten cache

    Is it possible to udpate 2 different databases from a single Timesten configured cache?.
    Edited by: user6867140 on Feb 12, 2009 1:06 PM

    Two different oracle instances.
    Let me give an example
    Table A is present in Oracle database 1
    Table B is present in Oracle database 2
    Table A is cached in TimesTen
    Any change in Table A in timesten need to be updated in Table A of Oracle database 1 and Table B of Oracle database 2
    Table A and Table B has the same data structure.

  • How to insert text into sqlite database from AutoCompleteTextField

    Dear Friends,
                       I want to know that whether it is possible to store values into the database from AutoCompleteText field?????????if it is posssible please explain that how we can do that............Please Reply.......I am waiting for the reply......
    With Love,
    Nithin

    You can use SSIS package for that
    Start a new Integration Services project in Business  Intelligence Development Studio/ SSDT. Add a new SSIS package with a data flow task. Add a OLEDB source to connect to Oracle server and add a OLEDB Destination to connect to your local database.
    Select tables for source and destination. On executing package source data will get transferred to your local database.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Insert / Update of a TIME field using Native SQL

    Hi Oracle gurus,
    We are trying to perform inserts and updates within an ORACLE table where a TIME field exists without suscess. We are trying to code it using Native SQL.
    EXEC SQL.
    INSERT INTO table (field1[name], field2[age], field3[birthday], field4[hour])
    VALUES (:name, :age, TO_DATE(:date_birth), ¿:hour?)
    ENDEXEC.
    EXEC SQL.
    UPDATE table SET field3[birthday] = TO_DATE(:date_birth), field4[hour] = ¿:hour?
    WHERE field1[name] = :name AND field2[age] = :age
    ENDEXEC.
    Which is the right coding sentence in order to achieve our goal?
    Many thanks in advance. Best regards,
       Imanol

    Hi
    There is no TIME datatype in oracle. There is only a TIMESTAMP or DATE type or the field is VARCHAR2 as most date fields in a SAP database are. To help you we would need the real field type. If possible you please do a desc <owner>.<table> in a sqlplus session and give us the field type.
    If possible also supply the error you get.
    Regards, Michael

  • HT4623 Here's the thing guys. I want to update my iphone 5 from 6.1.4 to ios7 using OTA. I have backed up on icloud. I just want to know that if i update then will all the music stored on my iphone will stay there after update or do i hav to sync it usin

    I want to update my iphone from 6.1.4 to ios7 using OTA but i'm not sure if my content will stay in the phone after the update especially the music cuz rest of it is backed up on icloud.

    Updating is not suppose to wipe any media or apps.
    It may happen because sometimes things just go wrong.
    I would back everything up first.

  • Loading the data from a packed decimal format file using a sql*loader.

    Hi ,
    In one of the project i'm working here i have to load the data into oracle table from a file using a Sql*loader but the problem is the data file is in the packed decimal format so please let me know if there is any way to do this....I search a lot regarding this ..If anybody faced such type of problem ,then let me the steps to solve this.
    Thanks in advance ,
    Narasingarao.

    declare
    f utl_file.file_type;
    s1 varchar2(200);
    s2 varchar2(200);
    s3 varchar2(200);
    c number := 0;
    begin
    f := utl_file.fopen('TRY','sample1.txt','R');
    utl_file.get_line(f,s1);
    utl_file.get_line(f,s2);
    utl_file.get_line(f,s3);
    insert into sampletable (a,b,c) values (s1,s2,s3);
    c := c + 1;
    utl_file.fclose(f);
    exception
    when NO_DATA_FOUND then
    if utl_file.is_open(f) then utl_file.fclose(f); ens if;
    dbms_output.put_line('No. of rows inserted : ' || c);
    end;SY.

Maybe you are looking for

  • Help -- can't transfer ANYTHING to my new visio

    I just bought a new zen vision:m. it looks nice, but i am having a very difficult time transfering anything to it. here is the problem: I plugged the vision:m into my computer the first day and was able to charge it. Using Napster, I was able to tran

  • How to find the list of Queries/Reports which are using Exceptional Aggregation in SAP BI?

    Hi All, We are interested to know how to find the list of Queries/ Reports which are using Exceptional aggregation in SAP BI. Please let us know is there any table's to check the list of reports using Exceptional Aggregation in SAP BI.

  • Change properties of controls in an array of clusters

    Hello, my latest problem: i display larga amount of data using arrays of clusters. the user has to be able to inserst clusters in between, therefore the array solution seems perfect. However, for each cluster, once a sub-control is defined, i would l

  • How to find a BADI implementation in SE19

    Hi All, Using SE18 , I am looking ta a BADI ex.. XSS_REM_INTERFACE. What is the best way to find the standard implementation for this BADI in SE19? Usually, I know the BADI but want to look how it is implemented (standard SAP implementation) etc and

  • Just bought a Mac in Aug09 - how do I get the upgrade discount?

    I just bought a Mac mini in August. I bought it through the Apple online store in Singapore. I think I'm entiled to buy the Snow Leopard upgrade for US$9.99 but I don't see where I can do this. I have seen a web page for US residents, but not for ove