Solved

Trouble with BLOBS

Posted on 2001-06-07
7
246 Views
Last Modified: 2010-04-02
I am trying to store a blob object into an Access database using Visual C++.  The Access data table lists the column type as OLE object, and Visual C uses it as a CLongBinary.  I have tried several approaches using both recordsets and SQL instructions.  Nothing works to store, the rest of the columns(text and numerals) update and there are no errors.
0
Comment
Question by:Destini
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 30

Expert Comment

by:Axter
ID: 6165125
Please show your code.
0
 

Accepted Solution

by:
moorrees earned 50 total points
ID: 6165500
I am very sorry but the OLE object is not a blob.
Access does not support blob's.
You have to us Microsoft SQL Server for that :(

The OLE field is used to add links to files on your system to keep you database
small.
0
 
LVL 30

Expert Comment

by:Axter
ID: 6167539
>>The OLE field is used to add links to files on your
>>system to keep you database small.
The OLE field does much more then this.  It can either store a link, or it can store data.  The format of the data is dependent on the OLE.

I'm not sure what blob is, so I can't comment on weather or not Access can support it.
If blob is an OLE, then access can support it.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Expert Comment

by:moorrees
ID: 6169368
>The OLE field does much more then this.  It can either store a link, or it can store data.  
>The format of the data is dependent on the OLE.

Well you are partially right. OLE means Object Linking and Embedding, only with the embedding
part it can include the data. The problem with that is, that it is NOT storing the "real" object, but a
viewable representation.

You can see this when you paste something in MS-Word. When you don't use OLE-pasting, but a
graphical / textual representation.

>I'm not sure what blob is, so I can't comment on weather or not Access can support it.
>If blob is an OLE, then access can support it.
BLOB = Binairy Large OBject.

This means that you can just store files in your database.
Access does not support this.
0
 
LVL 30

Expert Comment

by:Axter
ID: 6169510
>>BLOB = Binairy Large OBject.

Ok, well maybe your answer is right.  Is just that when you said OLE stores a link, that's kind of miss leading.

I just wanted to make sure that blob was not an OLE object, which then could be stored in Access.
0
 

Expert Comment

by:moorrees
ID: 6170908
I hope that Destini will see that too, and give me the points ;-)
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 6811477
I am sorry to see that Asker has not returned to update and finalize this question.  I am, therefore, force accepting this question.  In the event the Asker returns with additional needs related to this question, please respond and continue the collaboration process.
Thank you,
Moondancer
Community Support Moderator @ Experts Exchange
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is C++ STL?: STL stands for Standard Template Library and is a part of standard C++ libraries. It contains many useful data structures (containers) and algorithms, which can spare you a lot of the time. Today we will look at the STL Vector. …
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

739 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