Recent

Author Topic: Why I can´t put a blob text of mysql in a Tmemo???  (Read 4433 times)

drako86

  • Newbie
  • Posts: 2
Why I can´t put a blob text of mysql in a Tmemo???
« on: November 15, 2006, 09:26:14 pm »
hi, I go to explain my problem. I have a Tmemo and I want to fill it with some text that I have stored in a blob field in a database, but when I try to take this blob text, Lazarus show a database error  :cry:
I do this:

memo_comment.lines.Text:= SQLQuery2.FieldByName('comment').Value;

When I try to show a window with this memo, Lazarus show this message:

Project raised exception class 'EDatabaseError'

I don´t know what to do.... Can somebody help me??  :?

thanks you.

Marc

  • Administrator
  • Hero Member
  • *
  • Posts: 2583
RE: Why I can´t put a blob text of mysql in a Tmemo???
« Reply #1 on: November 16, 2006, 12:19:01 pm »
AFAIK you cannot read blobs as strings like you do here. IIRC you need a blob stream.
//--
{$I stdsig.inc}
//-I still can't read someones mind
//-Bugs reported here will be forgotten. Use the bug tracker

 

TinyPortal © 2005-2018