Solved

MSSQL 2005 and writing to blobs

Posted on 2006-11-10
2
138 Views
Last Modified: 2012-05-05
Hi,

I have an app I wrote in D2005  that uses an MSSQL 2005 server for the backend. The column I'm trying to save data to as a blob is a varbinary column.

I'm taking an open file in an editor saving it to a memory stream and then attempting to write it to a blob. Everything is fine until I get to here

tblobfield(tb_org_mast.FieldByName('org_dat')).LoadFromStream(ms);

Then I get an error that says the field is not blob.

What's wrong?

Thanks,
Greg
0
Comment
Question by:Mrgregoman
2 Comments
 
LVL 17

Accepted Solution

by:
mokule earned 500 total points
Comment Utility
Hi,
define image column not varbinary
0
 

Author Comment

by:Mrgregoman
Comment Utility
OK, that worked. Why does Varbinary not work?
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
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…

743 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

15 Experts available now in Live!

Get 1:1 Help Now