Solved

Insert into Blob field in Interbase

Posted on 2002-06-03
3
1,517 Views
Last Modified: 2012-06-27
I am trying to insert records into an Interbase table using the SQL syntax: INSERT INTO TABLE(Field list) VALUES(Value list). My code is choking on the BLOB field. I get the error:

SQLState: HY000
Native Error Code: 335544334
conversion error from string "BLOB"

Please help!!

Amy
0
Comment
Question by:AmyWiles
3 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 70 total points
ID: 7053274
the BLOB fields cannot be inserted as usual fields, but need to be updated by chunks (AppendChunk) and also read by chunks (GetChunk).
You need to read some documentation about this, which is the same for all the databases with BLOB (or similar) data type. See here for ASP/Interbase/Blob sample:

http://www.sibprovider.com/en_us/faqs.asp#008

CHeers
0
 

Author Comment

by:AmyWiles
ID: 7055151
Could someone please give me an example of writing text to a blob field? I am having a hard time finding any examples.
0
 

Expert Comment

by:dwhelp
ID: 9201608
Writing text to a BLOB field would be like

Recordset("fieldname").AppendChunk Fieldvalue

to retrieve,

Chunksize = Recordset("Fieldname).Actualsize
Fieldvalue = Recordset("Fieldname").GetChunk(Chunksize)

hope this helps, AmyWiles

0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

775 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question