这是为了下载,但我只想显示。请帮帮我
. . . . . . . . . . . . .
fs.Write(fileData, 0, fileData.Length)
'Set image variable value using memory stream.
fs.Flush()
fs.Close()
End Using
ShellEx(Me.Handle, "Open", sFileName, "", "", 10)
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub发布于 2015-06-28 08:32:05
从DB获得二进制对象pdf文件后,将其写入磁盘
System.IO.File.WriteAllBytes("c:\xxx\file.pdf", binaryData)然后,使用分配给打开pdf文件的默认程序启动进程
System.Diagnostics.Process.Start("c:\xxx\file.pdf")https://stackoverflow.com/questions/27145079
复制相似问题