-
Trying to read a PDF encoded into a database via aspdb
I am trying to get ASPDB enterprise to properly render a PDF encoded into a Sybase ver 12 database. The data type of the field that contains the blob is 201. When I run the code below instead of seeing my PDF document I see the word memo instead. The tech guys are saying that aspdb is expecting a data type of 205 not 201. If someone has some ideas I would be most appreciative.
Let me know if you need any additional data from me.
Thanks!
Marc
<!-- #INCLUDE FILE="cpsstuff.inc" -->
<%Response.Buffer=true%>
<html>
<body TEXT="Black" LINK="BLUE" ALINK="RED" VLINK="BLUE" Background="images/backreliefview.jpg">
<font FACE="Arial,Helvetica" Color="Black" Size="2">
<%
Set MyDb = Server.CreateObject("ASP.db" 'Create the ASP-db Object
MyDb.dbUnit = 545 'Make this a unique number for each page
MyDb.dbDBType = "SYBASE" 'Use ACCESS, ORACLE, SQL, or SQL65
MyDb.dbDSN = mydsn ' For SQL Server
MyDb.dbSQL = "Select permit_pdf from permit_doc"
MyDb.dbGridTableTag = "border=1 cellspacing=2 cellpadding=2" 'Turn on grid borders, etc.
MyDb.dbFormTableTag = "border=3 cellspacing=3 cellpadding=3" 'Turn on different form borders, etc.
MyDb.dbMode = "grid"
MyDb.dbImageDir="images/" 'Point to where the GIF navigation buttons are
'Choose which buttons to display
MyDb.dbNavigationItem="top, bottom, next, prev, gridrow, color,filter, download"
MyDb.dbNavigationIcon="std" 'Use the provided button filenames
MyDb.DBColor = "13"
MyDb.dbblob = "permit_pdf,application/PDF,browser,0"
MyDb.ASPdb 'Display the data!
%>
<a href="../newmain.htm" TARGET="main">Return to Main Menu</a><br>
</body>
</html>
-
Trying to read a PDF encoded into a database via aspdb (reply)
check you Sybase datatype. tell me what is ADO 201 (Long char) equivalent to in Sybase. But MEMO might have a chance to work too. YOu have to define the dbMemoTextSize=-1 to see the entire memo.
FK
------------
Marc Alexander Ferrari at 7/12/01 12:09:20 PM
I am trying to get ASPDB enterprise to properly render a PDF encoded into a Sybase ver 12 database. The data type of the field that contains the blob is 201. When I run the code below instead of seeing my PDF document I see the word memo instead. The tech guys are saying that aspdb is expecting a data type of 205 not 201. If someone has some ideas I would be most appreciative.
Let me know if you need any additional data from me.
Thanks!
Marc
<!-- #INCLUDE FILE="cpsstuff.inc" -->
<%Response.Buffer=true%>
<html>
<body TEXT="Black" LINK="BLUE" ALINK="RED" VLINK="BLUE" Background="images/backreliefview.jpg">
<font FACE="Arial,Helvetica" Color="Black" Size="2">
<%
Set MyDb = Server.CreateObject("ASP.db" 'Create the ASP-db Object
MyDb.dbUnit = 545 'Make this a unique number for each page
MyDb.dbDBType = "SYBASE" 'Use ACCESS, ORACLE, SQL, or SQL65
MyDb.dbDSN = mydsn ' For SQL Server
MyDb.dbSQL = "Select permit_pdf from permit_doc"
MyDb.dbGridTableTag = "border=1 cellspacing=2 cellpadding=2" 'Turn on grid borders, etc.
MyDb.dbFormTableTag = "border=3 cellspacing=3 cellpadding=3" 'Turn on different form borders, etc.
MyDb.dbMode = "grid"
MyDb.dbImageDir="images/" 'Point to where the GIF navigation buttons are
'Choose which buttons to display
MyDb.dbNavigationItem="top, bottom, next, prev, gridrow, color,filter, download"
MyDb.dbNavigationIcon="std" 'Use the provided button filenames
MyDb.DBColor = "13"
MyDb.dbblob = "permit_pdf,application/PDF,browser,0"
MyDb.ASPdb 'Display the data!
%>
<a href="../newmain.htm" TARGET="main">Return to Main Menu</a><br>
</body>
</html>
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|