PC Review


Reply
Thread Tools Rate Thread

convert Binary Stream to BLOB?

 
 
roger
Guest
Posts: n/a
 
      16th Oct 2008
(repost from ADO DAO group where no one replied)

using MSA2k7
I have 2 subs. that I rewrote from web example code.

sub1 fixes a certain type of broken files I have by open reading it as an
ADO Binary stream, editing the stream and writing it back to the HD.

later sub 2. reads in that file as a BLOB(?) and uses it for something else.

can I just convert the Binary stream into a BLOB directly.

Is it too much to hope for a cBLOB() Method?

TIA
 
Reply With Quote
 
 
 
 
Douglas J. Steele
Guest
Posts: n/a
 
      16th Oct 2008
The code in http://support.microsoft.com/kb/258038 should work in Access.

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


"roger" <(E-Mail Removed)> wrote in message
news:1790E1DD-FE34-4965-B6D6-(E-Mail Removed)...
> (repost from ADO DAO group where no one replied)
>
> using MSA2k7
> I have 2 subs. that I rewrote from web example code.
>
> sub1 fixes a certain type of broken files I have by open reading it as an
> ADO Binary stream, editing the stream and writing it back to the HD.
>
> later sub 2. reads in that file as a BLOB(?) and uses it for something
> else.
>
> can I just convert the Binary stream into a BLOB directly.
>
> Is it too much to hope for a cBLOB() Method?
>
> TIA



 
Reply With Quote
 
Sylvain Lafontaine
Guest
Posts: n/a
 
      16th Oct 2008
The following reference says that you can directly convert a stream to a
blob by resetting its Position to 0 and using the ReadText method to
directly load the blob field:

http://www.betav.com/Files/Content/W...ge%20BLOBs.htm

For the rest of your post, I don't know as I have no idea of what is the
cBlob method. If you are using a recordset opened against Oracle or another
type of specialised recordset, you should give these kind of details.

--
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: sylvain aei ca (fill the blanks, no spam please)


"roger" <(E-Mail Removed)> wrote in message
news:1790E1DD-FE34-4965-B6D6-(E-Mail Removed)...
> (repost from ADO DAO group where no one replied)
>
> using MSA2k7
> I have 2 subs. that I rewrote from web example code.
>
> sub1 fixes a certain type of broken files I have by open reading it as an
> ADO Binary stream, editing the stream and writing it back to the HD.
>
> later sub 2. reads in that file as a BLOB(?) and uses it for something
> else.
>
> can I just convert the Binary stream into a BLOB directly.
>
> Is it too much to hope for a cBLOB() Method?
>
> TIA



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BLOB Binary data in database MarcelV Microsoft C# .NET 1 8th Sep 2006 02:40 AM
Open binary file directly from BLOB Bishman Microsoft C# .NET 4 8th Aug 2006 07:42 PM
Binary BLOB on LDP , How to insert correctly attributes in AD =?Utf-8?B?Q2FybG9zIEN1bmhh?= Microsoft Windows 2000 Active Directory 0 6th Dec 2005 11:18 AM
Stream blob data to a tiff format =?Utf-8?B?UGhpbA==?= Microsoft C# .NET 6 6th Oct 2004 03:05 PM
Binary blob serialization Atul Microsoft Dot NET Framework 1 4th Oct 2003 02:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:38 AM.