You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
468 B
16 lines
468 B
imports System
|
|
imports System.IO
|
|
imports System.Web
|
|
|
|
public class vb_ViewPDF
|
|
inherits System.Web.UI.Page
|
|
|
|
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
|
|
|
|
dim bookId as string = Request.QueryString("bookId").ToString()
|
|
|
|
Dim srFile As New FileStream(HttpContext.Current.Server.MapPath("resources/pdf/book_" & bookId & ".pdf"), FileMode.Open, FileAccess.Read)
|
|
|
|
Dim pdfData(srFile.Length - 1) As Byte
|
|
|