Solved

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

Posted on 2009-07-13
5
355 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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Update 21-May-2015: I temporarily removed the source code and the code snippets to make major changes to the program. Regards, Joe INTRODUCTION This Article is a follow-up to the Article entitled How To Rename-Move a Batch of PDF Files Based o…
*Adobe Acrobat 9 was used for this article.  Particular steps may vary depending on software versions. Adobe Acrobat has many, many variables that my be utilized to customize your forms for clarity and ease of use. The Form Editing Tool will be y…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
We often encounter PDF files that are pure images, that is, they do not have text characters, but instead contain only raster graphics. The most common causes of this are document scanning software and faxing software/services that create image-only…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now