CLOB data through Visual Basic 2005

Does anyone have any sample code for writing a CLOB field through VB .NET? From what I've read, if you simply place the data into the field, then this will work but you are still limited to 4000 characters. To write a true CLOB value, you need to stream the data to the field, but I can't figure out how to do this.

OK. After many hours of searching I've finally put together something that works. Not sure if this is technically correct, but here it is for anyone else who gets stuck trying to do this:
Dim myBigString as String = "The BIG chunk of text that you need to store"
Dim conn As New OracleConnection
conn.ConnectionString = "Your connection string"
Dim cmd As New OracleCommand
conn.Open()
Dim CLOBobject As New OracleClob(conn)
CLOBobject.Write(myBigString.ToCharArray(), 0, myBigString.ToCharArray().Length)
cmd.Connection = conn
cmd.CommandText = "INSERT INTO SOMETABLE VALUES (<otherfield>,<otherfield>,<etc>,:1)"
Dim paramMyBigString As OracleParameter = cmd.Parameters.Add("1", OracleDbType.Clob)
paramMyBigString.Direction = ParameterDirection.Input
paramMyBigString.Value = CLOBobject.Value
cmd.ExecuteNonQuery()
conn.Close()

Similar Messages

  • Canopen through visual basic

    Hi i am new i in working with canopen,i am in compulsion to acquire canopen based encoder through visual basic 6 than labview,can anyone suggest the configuration which i need to make in visual basic for the same....
        the hardware wich i have to acquire is pci can series 2
    if someone can sendsome example to acquire the canopen datas through visual basic it will be very helpful &....
    i am eagerly waiting for  all ur reply

    Hi,
    I could not find any examples for VB and CANopen. You could try to program it by using the Frame api;  a fairly good knowledge of NI CAN and CANopen would be needed to do this.  I know you said you wanted to use VB, however NI does have a CANOpen LabVIEW Library which will work with all High Speed Series 2 cards.  The library does not have support for other languages however, so it will not work with VB 6. 
    Regards,
    Adam W
    Applications Engineering
    National Instruments

  • Creting PO through Visual Basic

    Hello Guys,
    I have to create a Purchase order with Visual Basic. I have created following code but at the end error is showing that <b>NO MASTER RECORD EXIST FOR VENDOR (VENDOR NO).</b>
    but with the help of same data i am able to create PO in SAP. I have attach source code. Please take a look and provide me the valuiable information.
    Option Explicit
    Dim functionCtrl As Object
    Dim sapConnection As Object
    Dim theFunc As Object
    Dim PoNumber
    Private Sub Command1_Click()
    Set functionCtrl = CreateObject("SAP.Functions")
    Set sapConnection = functionCtrl.Connection
    sapConnection.Client = "220"
    sapConnection.User = "PTBITUSR"
    sapConnection.Password = "HELLO2"
    sapConnection.Language = "EN"
    If sapConnection.Logon(0, False) <> True Then
        MsgBox "No connection to R/3 System"
        Exit Sub                                           'End program
    End If
    Set theFunc = functionCtrl.Add("BAPI_PO_CREATE")
    Dim pocur As Object
    Dim poheader As Object
    Dim poitems As Object
    Dim poitemschedule As Object
    Dim retMess As Object
    Dim returnFunc As Boolean
    Dim startzeil As Integer
    Dim endcol As Integer
    Dim the_name As String
    Set poheader = theFunc.exports.Item("PO_HEADER")
    Set poitems = theFunc.Tables.Item("PO_ITEMS")
    Set poitemschedule = theFunc.Tables.Item("PO_ITEM_SCHEDULES")
    Set pocur = theFunc.exports.Item("PO_HEADER_ADD_DATA")
    poheader.Value("VENDOR") = "24001291"  'Text1.Text
    poheader.Value("PUR_GROUP") = "PE6"  '''Text3.Text
    poheader.Value("DOC_TYPE") = "NB" ''Text4.Text
    poitems.Rows.Add
    poitems.Value(1, "PUR_MAT") = "SC101" ''Text5.Text
    poitems.Value(1, "PLANT") = "1500" ''Text6.Text
    poitems.Value(1, "NET_PRICE") = "2000" ''Text7.Text
    poitemschedule.Rows.Add
    poitemschedule.Value(1, "DELIV_DATE") = DTPicker1.Value
    poitemschedule.Value(1, "QUANTITY") = 3 'Text9.Text
    pocur.Value("CURRENCY") = "INR"
    poheader.Value("PURCH_ORG") = "1500" '''Text2.Text
    returnFunc = theFunc.call
    PoNumber = theFunc.imports.Item("PURCHASEORDER")
    Set retMess = theFunc.Tables.Item("RETURN")
    If retMess Is Nothing Then
    MsgBox retMess.Value(1, "MESSAGE")
    Else
    MsgBox retMess.Value(1, "MESSAGE")
    MsgBox "Purchase Order No : " & PoNumber & "Created"
    End If
    End Sub
    Regards
    Swati Namdeo

    in this case u have to pass complete data in full length.
    <b>poheader.Value("VENDOR") = "0024001291"  = 10 char length.</b>
    Regards
    Peram

  • I want to access LabView and Field Point Library through Visual Basic. Where can I find adequate information considering that I am just an starter.

    My aim is to have a ActiveX Control on a web page that can control the field point hardware as a small step towards home automation through the internet.

    The place to start is here :
    http://sine.ni.com/apps/we/nioc.vp?cid=3769〈=US
    This is labview's measurement studio homepage. This contains component works which is a toolkit for visual basic. This should give you all the info you need to get started.
    Jared

  • Problem in displaying CLOB data through procedure

    Can anyone suggest me the stored procedure which will output CLOB data which is stored in table
    SQL>Create table XMLDOC
    (col1 number(11,0),col2 CLOB);
    Thanks in Advance

    Create the stored procedure with one OUT VARCHAR2 parameter,then select the CLOB column value from the
    table into this OUT parameter and then display this
    using DBMS_OUTPUT package.
    Or by using bind variable of type VARCHAR2(4000) you
    can print that value of clob column.
    I think this will solve your problem.

  • Unable to load clob data through sql loader

    Hi Experts ,
    My ctl file is :
    LOAD DATA infile '$di_top/conversion/devtrack_notes.csv'
    truncate into table xxdi_proj
    fields terminated by ','
    optionally enclosed by '"'
    trailing nullcols (bugid,note *clob*)
    {code}
    The problem is note column is a clob and one of the
    values has line breaks like this :
    {code}
    Hi Sir,
    Would you please inform when the reports are scheduled for automatic process?
    Maria will stop his process to avoid duplication.
    Please inform asap
    With Regards ,
    Ronaldinho
    {code}
    When the data gets loaded ,
    The first column gets the sentence 'Would you please inform.....' i.e . the data of second columns gets loaded into first column as nulls are recognized as end delimiter.
    How to overcome this problem?
    Thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Pl post your exact OS and database versions, along with your complete sqlldr command, the table description and a sample of your input csv file.
    HTH
    Srini

  • Table updation through Visual Basic

    We are not able to update employee master table which has 73 columns. The problem is it is not allowing to update after certain number of columns say 50 columns. This is occuring only thru VB and not in SQL (i.e thru instert syntax).
    Can anyone tell what is the solution?

    Hi Saket,
    Yes it is possible!
    To trigger workflow from table updates you can use table level events. Refer to
    Re: WorkFlow when Data is changed in Table or program
    Also you can update a table from a workflow. To do this, create an Activity step in workflow. In this, you can call a BO method. This BO method would store the code to update the database table required.
    Just take care of the bindings between the method -> task -> workflow container.
    Hope this helps!
    Regards,
    Saumya

  • Barcode through Visual Basic 6.0

    How to make a barcode generator using barcode?

    Hello,
    This forum is for VB.NET, I would suggest
    asking your question here which is dedicated to VB6.
    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem.

  • ODT 11.1.0.6.20 doesn't work under Visual Studio 2005 server explorer

    I tried to connect to an Oracle Server by Server Explorer of Visual Studio 2005:
    1) In Server Explorer I click with right mouse button on Data Connections and choose Add Connection...
    2) I click on Change...
    3) I choose Oracle Database in the left list
    4) I choose Oracle Data Provider for .NET under the bottom left drop down list called Data provider (I see .NET Framework Data Provider for Oracle and .NET Framework Data Provider for OLE DB too)
    5) Instead of the dialog window shown at this link [http://www.oracle.com/technology/obe/net11gobe/building.net/images/addconn04.gif] I see the dialog window shown at this other link [http://img231.imageshack.us/img231/8212/wrongvisualstudio2005se.png]
    6) If I try to insert a right connection string or simply click on OK I receive this message box: "An unexpected error occurred in the .NET Framework Data Provider for Oracle. Please contact the provider vendor to resolve this problem."
    If I try to redo all the operations I cannot see anymore the Oracle Data Provider for .NET under the bottom left drop down list called Data provider.
    My system configuration is:
    - Windows XP SP2 32Bit
    - Oracle 11g ODAC 11.1.0.6.21 with Oracle Developer Tools for Visual Studio (I installed all the packages with Instant Client too, the client works I tried with SqlPlus and Sql Navigator 6.1)
    - Visual Studio 2005 Version 8.0.50727.762 (SP.050727-7600)
    - .NET Framework 2.0.50727
    I can use .NET Framework Data Provider without any problems, but I need the new ODT 11.1.0.6.20 because I can insert stored procedures into .NET dataset visual designer and call from a TableAdapter.
    I hope someone can help me.
    Edited by: user5476796 on 8-mar-2009 12.30

    I downloaded ODAC 11.1.0.6.21 recently (two weeks ago).
    I forgot to tell you that I have Visual Studio 2003 Enterprise Architect (Italian language) installed too and I installed ODAC for this version too.
    In Visual Studio 2003 under Provider Tab of the Database connection I don't see any Oracle Data Provider, the only one I see is Microsoft OLE DB Provider for Oracle.
    These are the whole info on my Visual Studio 2005 (English language) installation:
    Microsoft Visual Studio 2005
    Version 8.0.50727.762 (SP.050727-7600)
    Microsoft .NET Framework
    Version 2.0.50727
    Installed Edition: Professional
    Microsoft Visual Basic 2005 77626-009-0000007-41514
    Microsoft Visual Basic 2005
    Microsoft Visual C# 2005 77626-009-0000007-41514
    Microsoft Visual C# 2005
    Microsoft Visual C++ 2005 77626-009-0000007-41514
    Microsoft Visual C++ 2005
    Microsoft Visual J# 2005 77626-009-0000007-41514
    Microsoft Visual J# 2005
    Microsoft Visual Web Developer 2005 77626-009-0000007-41514
    Microsoft Visual Web Developer 2005
    Microsoft Web Application Projects 2005 77626-009-0000007-41514
    Microsoft Web Application Projects 2005
    Version 8.0.50727.762
    Crystal Reports AAC60-G0CSA4B-V7000AY
    Crystal Reports for Visual Studio 2005
    Microsoft Visual Studio 2005 Professional Edition - ENU Service Pack 1 (KB926601)
    This service pack is for Microsoft Visual Studio 2005 Professional Edition - ENU.
    If you later install a more recent service pack, this service pack will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/926601
    Oracle Developer Tools for Visual Studio 11.1.0.6.20
    Oracle Developer Tools for Visual Studio Copyright (c) 2005, 2007
    SQL Server Analysis Services
    Microsoft SQL Server Analysis Services Designer
    Version 9.00.3042.00
    SQL Server Integration Services
    Microsoft SQL Server Integration Services Designer
    Version 9.00.3042.00
    SQL Server Reporting Services
    Microsoft SQL Server Reporting Services Designers
    Version 9.00.3042.00
    Update for Microsoft Visual Studio 2005 Professional Edition - ENU (KB954961)
    This Update is for Microsoft Visual Studio 2005 Professional Edition - ENU.
    If you later install a more recent service pack, this Update will be uninstalled automatically.
    For more information, visit http://support.microsoft.com/kb/954961
    AnkhSVN
    Please visit http://ankhsvn.tigris.org for more information
    Below is the version information for the various AnkhSVN components
    AnkhSVN 1.0.1.2734
    OpenSSL 0.9.8a
    Neon 0.25.5
    ZLib 1.2.3
    Berkeley DB 4.4.20
    Subversion 1.4.2
    Ankh 1.0.1Final
    apr-iconv 0.9.7
    apr-util 0.9.12
    apr 0.9.12
    VMDebugger
    For more information about VMware Inc, see their website at
    http://www.vmware.com
    For customer support, call 1-800-xxx-xxxx.
    Copyright (c) 2006 VMware Inc Inc.
    And these ones are the info of Visual Studio 2003 Enterprise Architect ITA:
    Microsoft Development Environment 2003 Version 7.1.3088
    Microsoft .NET Framewrok 1.1 Version 1.1.4322
    Microsoft Visual Basic .NET 69529-112-0307713-18498
    Microsoft Visual C# .NET 69529-112-0307713-18498
    Microsoft Visual C++ .NET 69529-112-0307713-18498
    Microsoft Visual J# .NET 69529-112-0307713-18498
    Crystal Reports per Visual Studio .NET AAP50GS0000GTU000ME
    Microsoft Application Center Test
    Oracle Developer Tools for Visual Studio .NET 11.1.0.6.20
    Visual Studio Analyzer
    AnkhSVN
    Edited by: fradelpo on 11-mar-2009 4.16

  • Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?

    Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file?  If so, how?

    You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
    Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process.

  • Clobbered by a CLOB - Using C# in Visual Studio 2005

    Hello All,
    What I am trying to do:
    I am trying to insert a string as a CLOB into Oracle via C# using Visual Studio (VS) 2005.
    What I am using:
    The Oracle Tools for VS 2005 are installed and work fabulously with other types of data.
    Research I have done on my own:
    1. I have read the thread "ORA-01461"
    2. Have modified an example (see below) from the Oracle web site
    ..... as noted in the comments below (Jason Price).
    3. Addtionally, there are a number of www references.
    4. However, after a long unproductive day none are working for me.
    Error messages from Oracle (caught by the catch block):
    The error is: Oracle.DataAccess.Client.OracleException ORA-00936: missing expression at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, String procedure, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src) at Oracle.DataAccess.Client.OracleCommand.ExecuteReader(Boolean requery, Boolean fillRequest, CommandBehavior behavior) at Oracle.DataAccess.Client.OracleCommand.ExecuteReader() at clobSample.workThis() in c:\Documents and Settings\joe.user\My Documents\Visual Studio 2005\WebSites\HDTS\App_Code\clobSample.cs:line 71
    Thank you kind people of the Oracle Community,
    Mark
    *********** Code is Below ***********
    using System;
    using System.Data;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    public class clobSample
    public clobSample()
    // TODO: Add constructor logic here
    public OracleConnection getConnectionString(string DBuser, string DBpass)
    // Build Connection String
    string connectionString = "Data Source=MY_DATA_SOURCE;User Id=";
    connectionString += DBuser + ";Password=";
    connectionString += DBpass + ";Persist Security Info=True";
    OracleConnection connection = new OracleConnection(connectionString);
    return connection;
    ClobExample4.cs shows how to update a CLOB
    using SELECT ... FOR UPDATE
    public string workThis()
    string strResult = "";
    try
    // create an OracleConnection object to connect to the database and open
    // the connection
    OracleConnection myOracleConnection =
    getConnectionString("DB_USER_NAME", "DB_PASSWORD");
    myOracleConnection.Open();
    // create an OracleCommand object to hold a SQL statement
    OracleCommand myOracleCommand = myOracleConnection.CreateCommand();
    // step 1: create an OracleTransaction object
    OracleTransaction myOracleTransaction =
    myOracleConnection.BeginTransaction();
    // step 2: read the row
    myOracleCommand.CommandText =
    "SELECT TICKET_NUM, COMMENT " +
    "FROM HDTS_TICKET_EVENTS " +
    "WHERE TICKET_NUM = 1 FOR UPDATE";
    // THIS IS WHERE THE CODE ERRORS OUT *
    OracleDataReader myOracleDataReader =
    myOracleCommand.ExecuteReader();
    myOracleDataReader.Read();
    // Console.WriteLine("myOracleDataReader[\"id\"] = " +
    // myOracleDataReader["id"]);
    // step 3: get the LOB locator
    OracleClob myOracleClob =
    myOracleDataReader.GetOracleClob(1);
    // step 4: write to the LOB
    myOracleClob.Erase();
    string text = "Alas poor Yoric, I knew him well";
    char[] charArray = text.ToCharArray();
    myOracleClob.Write(charArray, 0, charArray.Length);
    Console.WriteLine("myOracleClob.Value = " + myOracleClob.Value);
    // step 5: commit the transaction
    myOracleTransaction.Commit();
    // Console.WriteLine("Successfully committed transaction");
    // close the OracleDataReader and the OracleConnection object
    myOracleDataReader.Close();
    myOracleConnection.Close();
    // Console.WriteLine("\nPress any key to end");
    // Console.ReadLine();
    return strResult;
    } // close try
    catch (Exception e)
    strResult = "The error is: " + e;
    return strResult;
    } // close work this
    } // close clobSample class
    Edited by: microBiker on Sep 30, 2008 5:01 AM

    Hi,
    I dont think this has anyting to do with CLOB, but rather the use of a reserved word for a column name.
    How did you get the table created with a field named "COMMENT"? That's a reserved word so you shouldnt use it, even if you can someone force the database to accept it by using quotes for example...
    SQL> select count(*) from v$reserved_words where keyword='COMMENT';
    COUNT(*)
    1
    SQL> create table t1 (comment clob);
    create table t1 (comment clob)
    ERROR at line 1:
    ORA-00904: : invalid identifier
    SQL> create table t1 ("COMMENT" clob);
    Table created.
    SQL> select comment from t1;
    select comment from t1
    ERROR at line 1:
    ORA-00936: missing expression
    I assume the error might be stemming from that, as I see no reason for the code to error.
    Cheers,
    Greg

  • How to edit a WFP application through a Visual Basic command console?

    Hi, I'm currently working on a little project of mine, based mostly on a Visual Basic command console, and I've had the idea to add a console-controlled Windows Form.
    What the console will eventually do is run, say, 1000 x 1000 [(1,1), (1,2), (1,3)... (574, 349), (574, 350)...] items through into a list, and then these million-or-so entries will use their assigned values as the x and y co-ordinates for
    the form, as well as little bits and bobs that will be added as I go along.
    Right now, the thing on my mind is this; How do I make, or access, or run, etc. a form, then load this code into it? I've been heading down some reference path with dependents and other stuff and I don't think it's going to carry me anywhere unless I ask
    the question directly.
    The main plan I have in mind is being to access the controls that a Windows Form has, using the VB console, e.g. Form1.Shape.AddRectangle (x,y) or something.
    If this is even possible, which I'm starting to doubt to my dismay, could you give me an absolute, and I mean that from top to bottom, every aspect fleshed out, preferably on the assumption that I don't even know what a file is, detailed walkthrough?
    Because I don't want to ask questions to the answers to my question.
    Thanks :)

    Items and bits and bobs doesn't have much meaning to me.
    If you want to create a Form from a Console app that is simple. Prior to launching the Form provide whatever you want to it I suppose.
    Whatever you attempt to provide to the form may need references added. Therefore you can research that on your own using the
    MSDN Library search engine which should keep anybody else from having to perform "top to bottom, every aspect fleshed out, preferably on the assumption that I don't even know what a file is, detailed walkthrough" since if you don't know
    anything you should be attempting to learn. And if anything is outside your scope of knowledge that you need to know to do whatever you want to do you should research and learn that. Not ask anybody else to do it for you or provide you baby step instructions
    for doing so.
    It's possible trying to provide 1000000 items and bits and bobs to a form will fail or your app may not have the memory allocated for doing that. And it's probably a poor idea too.
    Option Strict On
    Imports System.Windows.Forms
    Imports System.Drawing
    Module Module1
    Sub Main()
    Dim f2 As New Form
    f2.Left = 10
    f2.Top = 10
    f2.Text = "Test Form"
    f2.Width = 241
    f2.Height = 271
    Dim PB As New PictureBox
    PB.Width = 225
    PB.Height = 225
    PB.Left = 0
    PB.Top = 0
    PB.Image = Image.FromFile("C:\Users\John\Desktop\Picture Files\CrossBones PNG.Png")
    f2.Controls.Add(PB)
    f2.ShowDialog()
    Console.ReadLine()
    End Sub
    End Module
    La vida loca

  • DateAdd(interval,number,date) Visual Basic to LabVIEW Time Stamp add 18 months

    Hi all,
    I need to match Visual Basic Cmd  =  DateAdd("m", 18, Date()) which adds 18 months to today's date.  When I use LabVIEW Time Stamp VI's at first I tried adding 1.5 years in seconds. but this did not match the VB generated method?  What method do  I use in LV to obtain the VB DateAdd("m", 18, Date())
    Example 'Add one month to January 31, 2000
    document.write(DateAdd("m",1,"31-Jan-00"))
    Output:
    2/29/2000

    Well this is how you do it. However, it doesn't seem to work with the month. There was a thread about this problem not too long ago. If you overflow the month in the date/time rec cluster (so it is greater than 12), date/time to seconds returns 0. Every other element works fine. You can add 1000 to the day and it will figure it out just fine. When this bug is fixed, this will work. Also, it might only be a bug in recent versions. I'm on 8.5 and it doesn't work right.
    I realize this isn't a great answer to your question, but as far as I know, this is the easiest way to do what you want and have LabVIEW handle all the work.
    Message Edited by Marc A on 10-03-2007 03:56 PM
    Attachments:
    Example_BD.png ‏2 KB

  • Call stored procedure in Visual Basic 6.0 and datatype CLOB

    Hi
    Has somebody a Visual Basic 6.0 Sample Code which can call the following example procedure.
    test_package.getTestdata(
    pPeid IN NUMBER,
    pReturn OUT NUMBER,
    pData OUT CLOB
    Many Thanks in advance.
    Best regards
    Martin

    hi,
    give these links a try:
    http://help.sap.com/saphelp_nw04/helpdata/en/7f/c6dc63c54811d194af00a0c94260a5/frameset.htm
    and further:
    http://help.sap.com/saphelp_nw04/helpdata/en/72/90fd343603c95ee10000009b38f844/frameset.htm

  • Stored Procedure w/ binary data parameter problems in Visual Basic

    Howdy all.
    I am having a problem calling stored procedures with a BLOB parameter. I have tried changing the paramater other data types to see if it would work, but with no success. I am calling the stored procedure from Visual Basic using ADO. I am using the Oracle ODBC Driver, Release 9.2.0.4.0. I have tried changing the setup of the ODBC a good bit because that has fixed several problems for me in the past; however, it did not fix my current problem.
    Here is what I am trying to do. I have a function like the folowing:
    <BEGIN --------------------------------------->
    CREATE OR REPLACE FUNCTION PAGEFORMATSINSERT(
    p_ObjectFormatCode_ID      IN RAW DEFAULT NULL,
    p_PA_ID      IN RAW DEFAULT NULL,
    p_Name      IN VARCHAR2 DEFAULT NULL,
    p_FormatData      IN BLOB DEFAULT NULL,
    p_PF_ID      IN OUT RAW )
    RETURN INTEGER
    AS
    BEGIN
    INSERT INTO PAGEFORMATS (PF_ID, ObjectFormatCode_ID, PA_ID, Name, FormatData) /* <---- this FormatData column is a BLOB column */
    VALUES     (p_PF_ID, p_ObjectFormatCode_ID, p_PA_ID, p_Name, p_FormatData)
    END PAGEFORMATSINSERT;
    <END ----------------------------------------->
    The FormatData parameter has a data type of BLOB. In my Visual Basic, I have my ADODB.Command object. I am setting the CommandText of the Command object to "{? = call PageFormatsInsert(?, ?, ?, ?, ?)}". In order to set the parameter value for the BLOB data type, I am calling the AppendChunk function of the Command object - passing it a Byte array.
    I am getting the folling error:
         ERROR: -2147467259 [Oracle][ODBC][Ora]ORA-06550: line 1, column 13:
         PLS-00306: wrong number or types of arguments in call to 'PAGEFORMATSINSERT'
         ORA-06550: line 1, column 7:
         PL/SQL: Statement ignored
    If I change the FormatData parameter to a LONG RAW parameter, I get the following error:
         ERROR: -2147467259 [Oracle][ODBC][Ora]ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error
         ORA-06512: at line 1
    I am at a loss as to how to get binary data into by Oracle database. I need to do it using stored procedures. How can I set up my stored procedure or table to do what I want it to do? Should I change my table definition? Are there some settings in the ODBC connection I can tweak? How can I get the stored procedure to accept my call from VB ADO?
    Any help would be appreciated.
    wally

    Thanks for the idea, but I don't get how I am supposed to get my binary data to the stored procedure using the stream. I have a binary array that I want to pass to a stored procedure. I want to be able to use the same Visual Basic front end with out MSSQL database as with our Oracle database.
    I am using the ADODB Connection and Command and RecordSet objects. Currenlty our front end calls the ADODB.Command(ParamNumber).AppendChunk function passing it the binary array. Somehow, the SQL Server driver does the magic in order for the MSSQL stored procedure to work correctly. I need to know how to do one of the following:
    1. Get the Oracle driver to do the same magic.
    2. Set up the Oracle stored procedure so I don't have to change the VB front end.
    3. Change the VB front end so that it works with both MSSQL and Oracle.
    wally

Maybe you are looking for