How to retrieve VARBINARY values from SQL Server 2008 using VB.Net

前端 未结 2 387
轻奢々
轻奢々 2021-01-26 05:02

I\'m trying to populate a listview with varBinary(max) values. Well, I actually need to write each varBinary into a csv file and the table consists of

2条回答
  •  暖寄归人
    2021-01-26 05:35

    this is other option and work fine

    dim path as string = "c:\myFile.pdf"
    Dim data As Byte() = TB.Rows(0)("documento")
    Dim f As System.IO.File
    f.WriteAllBytes(path, data)
    

提交回复
热议问题