TrichviewEdit and blob stream

General TRichView support forum. Please post your questions here
Post Reply
blackbird
Posts: 1
Joined: Sat Dec 23, 2006 6:39 pm

TrichviewEdit and blob stream

Post by blackbird »

dobroe vremya sutok,
pojalusta podskajite kak mojno s pomoshy richviewedit zapisac Unicode tekst v bazu dannix MS SQL?
i sootvetstvenno s pomoshy richview prochitat tuje zapis?
slishal chto eto mojno prodelats s pomoshy TStream no nekak ne mogu zastavis rabotat programe normalno.
kod programi vigladet tak:

TStream *Stream;
ado->Open();
ado->Insert();

ado->FieldByName("themeid")->AsInteger=Form2->themid;
ado->FieldByName("nom")->AsInteger=questnom;
ado->FieldByName("type")->AsInteger=0;
ado->FieldByName("status")->AsInteger=1;

Stream=ado->CreateBlobStream(ado->FieldByName("text")->AsWideString,bmWrite);

quest1->SaveRVFToStream(Stream,false);

Stream->Free();
ado->Post();
Sergey Tkachenko
Site Admin
Posts: 17559
Joined: Sat Aug 27, 2005 10:28 am
Contact:

Post by Sergey Tkachenko »

(Please use English in the forum. Questions in Russian can be sent using private message or e-mail).

Your code looks correct. RVF must be written in the field.
May be this field type cannot contain binary data?
Post Reply