Friday, August 15, 2025

How to open binary file from database on browser- only display

 byte[] bytes =   file.FileData;

Response.Clear();

    Response.ContentType = file.ContentType;

Response.BinaryWrite(bytes);


https://www.aspsnippets.com/questions/206135/Open-Show-Base64-PDF-data-in-new-window-Tab-using-C-and-VBNet-in-ASPNet/

No comments:

Post a Comment