For the background to this question, see “How to I serialize a large graph of .NET object into a SQL Server BLOB without creating a large buffer?” that now has a large bounty on it.
I wish to be able to use a Stream object to read/write data to/from a BLOB field in a SQL Server row without having to put the all the data into a temp buffer.
If the above can be done...
As the Streams class has lot of CanXXX()
methods, not all streams can be used by all methods take accept stream inputs/outputs.
So how capable does a stream have to be to work with ADO.NET when sending data to/from SQL Server?
I am looking to have a standard Stream to which I can pass it on to other APIs.
Also the two answers so far only covers getting data form SqlServer, not sending the data to SqlServer.
See Question&Answers more detail:os