User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the ASP section within the Web Development category of DaniWeb, a massive community of 391,649 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,865 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our ASP advertiser: Lunarpages ASP Web Hosting
Views: 1351 | Replies: 1
Reply
Join Date: Dec 2007
Posts: 4
Reputation: zhk is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 0
zhk zhk is offline Offline
Newbie Poster

Help Upload .PDF files into MySQL using plain ASP

  #1  
Dec 13th, 2007
Hello,

I am new to Microsoft web development. I need help with plain old ASP. Not ASP.NET

I would like to users to my web site to upload .PDF files into the database. I have IIS 5 on Windows 2000 server. Other modules are working flawlessly, but my employer want me to provide website a capability to store .PDF files into the database which will later be displayed to visitor of the website in PDF format by clicking on the file of the .PDF file.

I have found and tried one of the solution on this website but it uses VB and I do not have VB on my web server. Rest of my ASP pages are working with VBScript. If there is a way for me to configure the webserver to work with VB level code in ASP page I would like to do that as well.

Can some help?

Thanks
Zhk
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2007
Posts: 75
Reputation: hielo is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 10
hielo hielo is offline Offline
Junior Poster in Training

Re: Upload .PDF files into MySQL using plain ASP

  #2  
Dec 20th, 2007
You just need to worry about a server-side script to process the file you want to upload. Refer to the following page for such script:
http://www.pscode.com/vb/scripts/Sho...=7361&lngWId=4

The fact that your file is PDF really makes no difference. I know it saves the files to specified folder on the filesystem, but if does not support db, you instead of saving the pdf to the database, you can just save the path of the pdf on your filesystem. Of course, you can always choose to first save it to the filesystem first and once that is done save it to your db as binary and then delete it from your filesystem. So, you have lots of options. You just need to decide which route to go.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb ASP Marketplace
Thread Tools Display Modes

Other Threads in the ASP Forum

All times are GMT -4. The time now is 1:15 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC