Solved

Trouble with BLOBS

Posted on 2001-06-07
7
238 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
  • 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
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

762 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

19 Experts available now in Live!

Get 1:1 Help Now