PC Review


Reply
Thread Tools Rate Thread

what is similar to Adodb.Stream for blobs?

 
 
bill dawson
Guest
Posts: n/a
 
      25th Aug 2003
Hello all,
I've seen a lot of sample code out there that, for example, puts an image up
to SQL Server by first reading it in a stream and setting it to a byte
array, then putting that byte array as the value of a SqlParameter.

It seems like this duplicates effort in some way. I mean, with Adodb.stream
we could set a stream to the value of a Recordset field. I'm not really
sure what then happened behind the scenes when we did that -- perhaps
everything got sucked into a byte array in memory at one time, but I always
kinda assumed something more "memory friendly" was happening (like buffer,
send, buffer, send...), assuming the connection was open.

Isn't there something we can do in .NET to eliminate the step of filling up
a byte array just in order to then put it as the value of a SqlParameter, in
other words, something we can do to send the stream that loaded the image
itself as a parameter?

thank you,
Bill Dawson


 
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
Enable ADODB.stream =?Utf-8?B?T1RNU05X?= Windows XP Internet Explorer 0 12th Jul 2005 05:27 PM
ADODB.Stream (KB870669) Curious Windows XP Internet Explorer 1 12th Jul 2004 09:57 PM
adodb.stream (KB870669) sasky1 Windows XP Security 1 9th Jul 2004 09:50 AM
ADODB.stream Brian Burgess Microsoft Windows 2000 Windows Updates 2 5th Jul 2004 10:33 PM
ADODB.Stream to .Net Streams Thanh Treakle Microsoft ADO .NET 0 9th Nov 2003 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:23 AM.