I am storing a Word document in a SQL Server 2005 database in a varbinary (max) column. Is there a way to open this document from a VB.NET Windows Forms application without serializing to a file first (i.e., directly from the byte array that I read from the database)?
Depends on what reads it. If it's Word, you probably have to serialize the file, but if it's a function or library that can take IO.Stream, then you can wrap a new MemoryStream around an array of bytes and pass that.
. , , .
Source: https://habr.com/ru/post/1696810/More articles:Copying a Version Control Catalog - version-controlFile system information - how to request it? - c ++Launch of a new work focused on refactoring applications in the style of "backfield" and "Agile" - .netDo I need to leave spaces in a standard server rack? - hostingCalling a web service from Seam - javasecure way to authenticate an administrator on an ASP.NET site using OpenID with DotNetOpenID - asp.netRace Condition Analyzers for .NET - .netHow can I find which search terms (if any) brought the user to my site? - search-engineProblems transferring card cards between computers - openidWhat collaboration tools are effective for working with non-technical people? - collaborationAll Articles