Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB Tools

Lost Password?

Thread Tools Display Modes
Old 03-07-2016, 07:40 AM
edbente edbente is offline
Junior Member
Join Date: Mar 2016
Posts: 1
Default PDF files into sql server 2008

I am posting pdf files into a table in my sql server. The field in the table is of type Varbinary(MAX).
It works fine with small size pdf-files but when I try to put larger files into the field I get the error:
eoleException with message the text, ntext, or image pointer value conflicts with the column name specified.

the code is:

InS, OutS: TStream;


InS := TFileStream.Create(filbox.filename, fmOpenRead);

OutS := tbl_dok.CreateBlobStream(tbl_dokdokument, bmWrite);

OutS.CopyFrom(InS, InS.Size);


Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:46 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.