[Visual Basic 6.0]The code below, given a file name string, writes the contents of the file to an attribute of a new row in a table.
Dim pMemoryBlobStream As IMemoryBlobStream Set pMemoryBlobStream = New MemoryBlobStream pMemoryBlobStream.LoadFromFile sFilename Set pTable = pFeatWorkspace.OpenTable(“jim.blobtable”) Set pRow = pTable.CreateRow pRow.Value(1) = sFilename pRow.Value(2) = pMemoryBlobStream pRow.StoreThis code retrieves the data and writes it to a file.
Dim pMemoryBlobStream As IMemoryBlobStream Set pMemoryBlobStream = pRow.Value(2) pMemoryBlobStream.SaveToFile sFilename
[Visual Basic .NET, C#, C++]
No example is available for Visual Basic .NET, C#, or C++. To view a Visual Basic 6.0 example, click the Language Filter button
in the upper-left corner of the page.