Unable to insert BLOB value into a MSSCE "image" field. Error: 8007000E - Not enough storage is available to complete this operation



Hi, all.

When I'm trying to add BLOB data into a MS SQL Server Compact edition table I get following error

First chance exception at $767442EB. Exception class EOleException with
message 'Not enough storage is available to complete this operation'.
Error code: 8007000E

The table declaration follows:

create table Pages(
ID integer identity (0, 1) constraint PK_Pages primary key,
Document_ID integer constraint FK_Pag_Document_ID references Documents(ID)
on delete cascade on update cascade,
PageOrder integer not null,
Data image,
constraint UC_Pag_PageOrder unique (Document_ID, PageOrder));

The statement is:

insert into Pages (Document_ID, PageOrder, Data) values (:xDocument_ID,
:xPageOrder, :xData)

The code which assign parameters is (Delphi):

ADOQuery.Parameters.ParamByName('xDocument_ID'):=...;
ADOQuery.Parameters.ParamByName('xPageOrder'):=...;
ADOQuery.Parameters.ParamByName('xData').LoadFromFile('diamond.jpg',
ftBLOB);

LoadFromFile assigns array of bytes loaded from a file to ADO
Parameter.Value and the value 205 (adVarLongBinary) to the Type property.

I have a lot of resources and the image is small ~ 200K. Exactly same code
perfectly works for MS SQL Server Express.
It works if I exclude Data and xData from insert query.
OS: Windows Vista.

Additionally when query is executing Delphi debugger catch stream of
messages sent by OutputDebugString API function. The messages always same
and contain following string:

Debug Output: Invalid parameter passed to C runtime function.

Can someone say what does this error mean and how to insert BLOB value into
a MSSCE table?


.



Relevant Pages

  • Unable to insert BLOB value into a MSSCE "image" field. Error: 8007000E - Not enough storage is
    ... When I'm trying to add BLOB data into a MSSCE table I get following error ... First chance exception at $767442EB. ... Additionally when query is executing Delphi debugger catch stream of messages sent by OutputDebugString API function. ... Can someone say what does this error mean and how to insert BLOB value into a MSSCE table? ...
    (microsoft.public.sqlserver.ce)
  • Re: Customized filter for content searching
    ... documents with SQL Server Full-Text Search in SQL Server 2000. ... As for your images you will need to store them separately ... Access and Modify SQL Server BLOB Data by Using the ... > I have some office documents which I am storing as image ...
    (microsoft.public.sqlserver.fulltext)
  • cant rebind placehodler - Blob, ODBC, SQL Server, DBI, Win32
    ... I have been banging my head against the wall for a while now trying to figure out why I can't upload a some blob data to a SQL Server database via DBI. ... SQLDescribeParam failed reverting to default type for this parameter: ... 773 0 obj ...
    (comp.lang.perl.misc)
  • Re: cant rebind placehodler - Blob, ODBC, SQL Server, DBI, Win32
    ... figure out why I can't upload a some blob data to a SQL Server database via DBI. ... This code is inside an object so $self->datareturns the blob data as a scalar and $self->idreturns the id of the record we are updating. ... The whole thing is in the context of a CGI application that is doing a file upload. ... $self->storagereturns a database handler to the SQL server and I generally haven't had any problems storing other types of data. ...
    (comp.lang.perl.misc)
  • Re: Full Text Search Setup
    ... have SQL Server 2000 SP3 on Win2003! ... by populating the column documentdoctype2 column with both ... Access and Modify SQL Server BLOB Data by Using the ... > (which is why we are storing the mime type.) ...
    (microsoft.public.sqlserver.fulltext)