Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

How to save a file in ASP that is submitted by Acrobat

Posted on 2009-07-13
5
365 Views
Last Modified: 2012-05-07
I have created a PDF form using Adobe's LiveCycle designer that submits the pdf form to a URL that I assign.

What I need to do is be able to accept this file on our IIS 6 / W2k3 webserver using an .ASP page and save it on the server.
0
Comment
Question by:rubendn
  • 2
  • 2
5 Comments
 

Expert Comment

by:harkerad
ID: 24845721
The following link is a step-by-step example of how to integrate Adobe LiveCycle Forms in a .NET application.

http://www.adobe.com/devnet/livecycle/articles/smartdoc_dotnet.html
0
 
LVL 1

Author Comment

by:rubendn
ID: 24845743
Thanks for the answer but I'm looking for a way in Classic ASP instead of .NET.
0
 
LVL 9

Expert Comment

by:rg20
ID: 24848446
In the past I used a package called SAFileup in classic ASP

http://fileup.softartisans.com/

There may be a binary way to do it natively in IIS6, but I never got that far.  Sorry
0
 
LVL 1

Accepted Solution

by:
rubendn earned 0 total points
ID: 24849335
After searching around I found a way to do it.  Here is the code:
<%
response.buffer = True
 
totalsize = request.totalbytes
 
set objADO = server.createobject("adodb.stream")
objADO.type = 1
objADO.open
 
	objADO.Write Request.BinaryRead(totalsize)
	objADO.Position = objADO.Size
	objADO.savetofile "c:\webs\docs\testpdf.pdf"
 
objADO.close
set objFSO = nothing
%>

Open in new window

0
 
LVL 9

Expert Comment

by:rg20
ID: 24849381
You might have to chunk that for larger files.  Look into it more.

Glad you found it.
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
In this third video of the Xpdf series, we discuss and demonstrate the PDFtoText utility, which converts PDF files into plain text files. Download and install the software.: You may have already downloaded and installed the Xpdf tools while watching…
Sometimes we receive PDF files that are in the wrong orientation. They may be sideways or even upside down. This most commonly happens with scanned or faxed documents. It is possible to rotate the view of these PDFs with the free Adobe Reader produc…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question