Solved

Why after updating the record which has a "Text" field, it shows: "Invalid BLOB handle in record Buffer."

Posted on 2004-09-01
3
224 Views
Last Modified: 2010-04-05
I am using mySQL server as database.  I display the company info which has a text field(BLob) in a form. First it's ok, but when I update or insert a record in the table and display it again. It shows:"Invalid BLOB handle in record Buffer.". Can you help me? How to solve this?

My Table: CREATE TABLE Company (
                    CompanyID INTEGER UNSIGNED NOT NULL AUTO_INCREMENT,
                    CompanyName VARCHAR(80) NULL,
                    Notes TEXT NULL,
                    PRIMARY KEY(CompanyID)
                   );

Display: CompanyQuery.SQL.text:='select * from company'
           Two components in the form, one is Edit, The other is Memo for the text field.
               CompanyNameEdit.Text:=CompanyQuery.FieldByName('CompanyName').asstring;
               NotesMemo1.Text:=CompanyQuery.FieldByName('Notes').AsString;

Update:      s:='Update Company set '
                  + 'CompanyName="'+CompanyNameEdit.Text+'",'
                  + 'Notes="'+NotesMemo1.Text+'" '
                  + 'Where CompanyID='+CompanyQuery.FieldByName('CompanyID').AsString;
0
Comment
Question by:adamy
  • 2
3 Comments
 
LVL 13

Expert Comment

by:BlackTigerX
ID: 11953635
are you using BDE?
if you are:
- what version are you using?
- have you tried changing the BLOBS TO CACHE in the BDE administrator?
0
 
LVL 1

Author Comment

by:adamy
ID: 11954043
Yes, I am using BDE v5.01. What should I change 'BLOBS TO CACHE' to?
0
 
LVL 13

Accepted Solution

by:
BlackTigerX earned 50 total points
ID: 11956262
just a bigger number of what you have right now... how many records to you request in a query?
you want to put as many records as you would retrieve in a query
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

943 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now