I have a commercial program that stores PDF files to SQL 2005. I would like to be able to search for (I have that part) and then display the PDF file in a browser. It's the 'display the PDF file' that I'm having trouble with. I am using HTTP/ASP and would prefer to continue that way. I don't know anything about ASP.NET, so that would not be helpful to me. Any help would be appreciated. Thanks.
stream varbinary PDF file from SQL 2005 to browser using ASP
1k Views Asked by Jeff Roller At
1
There are 1 best solutions below
Related Questions in SQL
- Can MVC.NET prevent SQL-injection at razor or controller level?
- SQL server not returning all rows
- When dealing with databases, does adding a different table when we can use a simple hash a good thing?
- Creating a parametrized field name for a SELECT clause
- Combine two rows based on common ID
- Column displays each count
- Slick query for one to optional one (zero or one) relationship
- Aggregate and count in PostgreSQL
- MAX and GROUP BY - SQL
- SQL statement for a tricky 2 table query
- How to create nested selects with sql?
- Pull and push data from and into sql databases using Excel VBA without pasting the data in Excel sheets
- Best Practice for adding columns to a Table in Oracle database
- SQL FIFO STACK using two tables
- SQL Query - Order by String (which contains number and chars)
Related Questions in PDF
- Itext get special letters from pdf
- Carrierwave file upload with different file types
- Get text from a section of a pdf page with IcePdf
- itext pdf to image convert
- PDF to Text extractor in nodejs without OS dependencies
- PDF to ByteArray Conversion
- Opening PDF file in SWT Browser - XulRunner default viewer
- Generate TCPDF output to a shared drive folder
- Combine base and ggplot graphics in R figure window in different pages
- Updating a PDF Barcode Field in iOS and Android Device
- Prevent PDFsharp from saving an image file?
- Adding attachment links between lines in itext for pdf
- Crop Pdf from each edge using itextshap
- How to create a PDF with iText+XMLWorker from servlet using custom font?
- how to create a pdf editor for grails
Related Questions in ASP-CLASSIC
- How to implement Google Recaptcha 2.0 in ASP Classic?
- microsoft odbc driver manager data source name not found and no default driver specified
- .asp file replaced on production but the codes changes are not reflecting
- How do I take values entered on one html page's form, and enter them on another html page as variables
- Microsoft.XMLDOM - Facebook Page RSS - System error: -2147012866
- ASP include file after ajax post
- "+" symbol contain email file name is not opening
- Error when leaving input blank in ASP
- How do I reload an ASP page with a new querystring?
- LIKE operator in SQL for my Access Database returns no values in ASP CLASSIC while it does if the query gets copied directly in Access
- Read POSTed Binary File And Write To a New Binary File
- Deploying a classic ASP site from IIS 6 (2003 WS) to IIS 7 (WS 2008). Tried Manual deploy and msdeploy
- ASP Error 0223 - TypeLib Not Found, intermittent, resolved after IIS restart
- Looping through JSON using ASPJSON
- Javascript Ajax Call always returns readyState=1 and status=0 error
Related Questions in STREAM
- Extract bytes of specific stream from mpegts file using ffmpeg
- In Java how to read the latest string of constantly generated stream fast?
- java update all children in list
- Java - Start Upload after Download
- how to write the output of iostream to buffer, python3
- How to display MJPEG-stream in Vaadin (Java)?
- Creating a Command Prompt
- Unchecked returned value causing unexpected states and conditions
- Multiple streams over single project in Git?
- encode, decode base64 image stream delphi
- Java - Write a string prefixed with the 7 bit encoded length
- How I can send a object from Client to Server in Java?
- character encodings used by FileWriter, DataOutputStream, OutputStreamWriter and RandomAccessFile
- How do I save the console output to a textfile in a certain directory?
- Issues parsing a 1GB json file using JSON.NET
Related Questions in VARBINARY
- How can I extract the value of a varbinary(max) column?
- PDO SQLSRV And PDO Dblib Giving Different Result for Varbinary Datatype
- SQL varbinary column to byte array in c# fails when result set is passed in as XML
- How to handle and escape varbinary database entries correctly in python
- Huge sql server database with varbinary entries
- SQLEXPRESS: Bounding box from geometry
- Working with Binary Data in MySQL
- MySQL in Java: using a LIKE query on a varbinary field?
- Assigning an empty binary value to a varbinary(MAX) column creates a column 8000 bytes long
- Streaming VARBINARY data from SQL Server in C#
- stream varbinary PDF file from SQL 2005 to browser using ASP
- What is correct way to declare varbinary in SQL Server 2008?
- Inserting an image retrieved from a web url into a SQL Server database as a varbinary column
- Perl DBI / FreeTDS / SQL-Server: How to insert/update BLOB varbinary(max) data?
- TSQL vbinary bitmasking with varbinary right hand side operator
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The best option here is to implement a HttpHandler that fetches the binary data from your database and outputs it to the response stream. This is the most efficient method available in ASP.Net.
There are many questions about HttpHandlers on SO, so implementing one should be easy: https://stackoverflow.com/questions/tagged/httphandler
One thing you should be aware of is that you should set the correct content type so that the browser recognices the pdf document.