Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Trouble with BLOBS

Posted on 2001-06-07
7
Medium Priority
?
253 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 200 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 does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

688 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