Solved

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

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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Update 21-May-2015: I temporarily removed the source code to make major changes to the program. Regards, Joe In a previous Experts Exchange article, How To Rename-Move a Batch of PDF Files Based on Contents of the Files (http://www.experts-exchan…
*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 first video of the three-part Xpdf series, we introduce and describe Xpdf, a library containing nine command line utilities that perform various functions on PDF files. We show where the library is located and how to download it, discuss its…
In this video, we show how to convert an image-only PDF file into a PDF Searchable Image file, that is, a file with both the image (typically from scanning) and text, which is created in an automated fashion with Optical Character Recognition (OCR) …

914 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

14 Experts available now in Live!

Get 1:1 Help Now