Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > DB Tools

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
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

Hi,
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:


var
InS, OutS: TStream;

begin

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

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

OutS.CopyFrom(InS, InS.Size);

OutS.Free;
InS.Free;
tbl_dok.Post;

end;
Reply With Quote
Reply

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 10:30 AM.


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