If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Informix > Open Large object

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-31-08, 04:24
honzacivin honzacivin is offline
Registered User
 
Join Date: Dec 2008
Location: Czech Republic
Posts: 1
Open Large object

Hi, I try to open large object IfxBlob but an error appears. see the code and error

DbParameter dbParameter = null;

//Read the file
StreamReader strmRdr = new StreamReader(filePath);

//Open the connection
OpenConnection();

//Create smart locator
IfxSmartLOBLocator IfxSmartLOBLoc = new IfxSmartLOBLocator(strmRdr.ReadToEnd());
//Create IfxClob
IfxClob myClobVal = new IfxClob((IfxConnection)m_connection);

myClobVal.EstimatedSize = 49000;
myClobVal.ExtentSize = 100;
myClobVal.Flags = (int)IfxSmartLOBCreateTimeFlags.KeepAccessTime
| (int)IfxSmartLOBCreateTimeFlags.NoLog;
myClobVal.MaxBytes = 45000;
//Open IfxClob
//Here I got the error "ERROR [HY000] [Informix .NET provider][Informix]Smart-large-object error."
myClobVal.Open(IfxSmartLOBOpenMode.ReadWrite);


Thanks for UR help

Last edited by honzacivin; 01-05-09 at 06:00.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On