Dim binaryData As Byte() = DirectCast(dtFile.Rows(0)("file_data"), Byte()) Me.Response.Cache.SetCacheability(HttpCacheability.NoCache) Me.Response.ContentType = dtFile.Rows(0)("content_type") Response.Buffer = True Me.Response.BinaryWrite(binaryData) Me.Response.[End]()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)