Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 256
  • Last Modified:

Trouble with BLOBS

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
Destini
Asked:
Destini
  • 3
  • 3
1 Solution
 
AxterCommented:
Please show your code.
0
 
moorreesCommented:
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
 
AxterCommented:
>>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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
moorreesCommented:
>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
 
AxterCommented:
>>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
 
moorreesCommented:
I hope that Destini will see that too, and give me the points ;-)
0
 
MoondancerCommented:
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

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!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now