Sending a file via http POST

I can't find out how to send a pdf file to the REST API /transientDocuments. In what format is it in? What should I include in the header and the body? I can't find a clear answer.

I thought about it! I'll post the solution for others to research.

To send a PDF on HTTP Announces, I put the header to have the access token. However, I put the body is

"- 011000010111000001101001\r\nContent-Disposition: form-data; name = \ 'file '; "filename = ${fileBase64} \r\nContent-Type: application/pdf\r\n\r\n\r\n - 011000010111000001101001-

Where the variable "fileBase64" is my file that I converted to a string in Base64.

I also put the Content-Type to be "multipart/form-data; Boundary = - 011000010111000001101001"

I was able to understand using app postman to observe what has been sent between the Adobe server and the application. Postman also had examples of code in Java (and many other languages) which has proved invaluable when I was trying to find a solution.

Hope this helps someone else.

Tags: Adobe Sign

Similar Questions

  • Send a file via HTTP

    I tried searching on Google and it seems that the techniques are specific platform or you need to get the modules or something, so I thought I'd see if CF has something to offer.

    I need to download a file on a remote server. I the name of the server and the password for the server and the IP address of the server. I think it will be something to do with cffile download, but I don't see a server parameter, but maybe that could just be the destination, but then what is a password?

    Does anyone do this? What have been your solutions?

    Thank you!

    kodemonki wrote:
    > "" "" My instructions from the documentation (I kid you not):»» "»
    >
    > 2. Validate the XML document.
    >
    > (the first step was to create an xml file)
    >
    > When asked how I do that, I got the response:
    > ---------------------------------------------------------------------------
    > There are two methods to send the XML file:
    >
    > 1) direct: attached is an example of C++. It assume a fair
    > expertise in sockets programming.
    >
    (> 2) HTTP Post. This is the most common method of displaying the XML
    > (and the suggested approach). This isn't a recommendation in the official way
    > use VB to communicate with the XML server.
    > ---------------------------------------------------------------------------
    >
    > If VB can do as they wish, should not SEE? Or CF strictly respects
    > according to the W3C standards where VB does not work?
    >

    Not quite.

    Looking at the example VB I determined he was using HTTP 1.1
    standard to a RAW POST of XML data. Unfortunately for you, CF 4.5
    back to the time of HTTP 1.0, and does not support this. I believe that this
    do use properties of the body, ect. I have
    have not found a solution 4.5. I found this list for CF 5.0 in a
    old assignment of House of Fusion.

    http://www.houseoffusion.com/groups/cf-talk/thread.cfm/ThreadId:8087

    If you are unable to update, something you can watch with C++ code, is
    This CF 4.5 supports the use of C++ custom tags. It's
    theoretically possible you could use C++ code in this way,
    but he will need a good knowledge of C++ and programming of custom tag.

  • sign the document with 'Draw my signature' and send it via http-post

    Hello

    I have a pdf document with a signature field. When im opening with AcrobatReader XI, I can sign / Place Signature / draw my signature. I can't 'save a copy '. It works pretty well.

    Now, I place a button in the pdf document to be sent via http post to a given address. When I now open this PDF in the XI AcrobatReader, trying to sign. I can only do this with sign / Place Signature / use a certificate. But there is no way to "draw my signature."

    Did I miss an option to do this? Pls tell me if he has a chance to sign the document with 'Draw my signature' and send it via http-post.

    Or is this part of the concept? When I'm looking for a solution, I found EchoSign electronic signature.

    What is available depends on how the as is put in place. If you include a button with an action of type 'Submit form' and/or reader - enable the form, then e-signature (signature of drawing) will not be available in the player. If the document is compatible player then digitally signing will. So for what you want, do not Reader-enable the document and you can use the submitForm JavaScript method to submit. The site that has the JavaScript documentation was not available at the time I wrote this, but post again if you need help with that.

  • Send a PDF form via HTTP Post: Newbie Questions

    Hello

    I am completely new to PDF forms, so I was finding the documentation and the overwhelming options.

    I'm hoping to get directed to the documentation/tutorials/examples that I really need.

    I want to build a 'proof of concept' for my boss.  I would like to include a screen in our webapp Java (JSP & spring) where either a PDF form is incorporated or is accessible via a link.

    I have

    • Standard Adobe Acrobat Distiller X license
    • Adobe Acrobat X Standard
    • Microsoft Office 2010

    I made a little, the form of Microsoft Word 3 field.  I then he converted via distill into a PDF form.

    I then found this document on how to submit a PDF form to a component side Server:

    http://acrobatusers.com/tutorials/form-submit-e-mail-Demystified

    My big problem with this document, is not an example, nor an example of what is happening in an HTML page complete.   Because I I have a few questions:

    1. I see such an example somewhere?
    2. The result of the call to the javascript function doc. SubmitForm (urlToMyServerSideComponent) go in a script tag on the HTML page as other javascripts?
    3. Can I submit the function from an HTML button run or I put a button 'send' the PDF form?
    4. Do I need Adobe LiveCycle to create a PDF form with a button "submit"?  Free versions?
    5. Can I send via HTTP POST?
    6. Do I need Adobe LiveCycle to create a PDF form with a digital signature?
    7. Is there a document/tutorial that fits where I want to? (Please no books, I am tyring to show to my boss that this is something which can be done in a reasonable amount of time, no time to get and go through a book).

    Thanks in advance for things which make me pointed in the right direction

    Steve

    This seems to imply that I can do a such acroform without using an application or can I use an application with an option to write code by hand.  Am I wrong?  If yes could tell me on the document from the beginner to learn how to do this?    I have acrobat, but I don't have the 'send to server' option in the menu to distribute.

    No, you would use Acrobat to add the button and configure. As said earier, you want not to use distribute the form for this type of shape. Simply add a button on one of the pages of the PDF and give a mouse action upward to "submit a form":

    The video tutorial contains more information on the treatment of the submission on the server. Again, do not use the option to distribute the form in Acrobat.

  • Not able to send multiple files via bluetooth

    I have had this problem since I bought my laptop. I am able to send only one file. In other words, when I right click on the file you want, there is a separate option "send to Bluetooth" allows me to transfer a single file to my phone or another laptop. But when I select several files and right-click on it and select ' send to--> Bluetooth device ", a window opens but it doesn't detect other bluetooth devices. I would also like to add that the drivers are updated and devices are in the range. The options "Send to Bluetooth" and "send to--> Bluetooth Device" are different. I'd be happy if someone gave me the solution.

    My laptop: HP Pavilion DV6 - 6006tu
    Operating system: Microsoft Windows 7 Home Premium

    Thank you.

    Hello

    Method 1:
    Try first to add and pair the device and then try to send files via Bluetooth. You can follow the below mentioned article that will give you information on add a Bluetooth device to your computer:
    http://Windows.Microsoft.com/en-us/Windows7/add-a-Bluetooth-enabled-device-to-your-computer
     
    Method 2:
    You can see the laptop manual to see the steps on how to send multiple files via Bluetooth or check Bluetooth section for the information you are looking for.
     
    Let us know if it helps!

  • Cannot send a file via bluetooth

    I sent music files via bluetooth from my pc to mobile for a long time. But today when I did it, the phone came with the message asking me to accept the data. The two devices are connected, but after I click on send via bluetooth to "xyz" nothing happens at all.

    Hi Qureshi,

    1. What is the brand and model of the computer?

    2. is specific to this particular phone question?

    This problem may be caused, if the Bluetooth service is not running or because of corrupted system files.

    Here are some steps that you can follow:

    Method 1:

    Install the latest drivers for your phone, on your computer. Drivers for phones are usually included in the suites of PC, created by the manufacturers of mobile phones.

    Method 2:

    Follow these steps and check if the Bluetooth support Service is started.

    (a) press the Windows key + R, type services.msc and press enter.

    (b) right click on the service named Bluetooth support Service.

    (c) check if it is started, otherwise click Start.

    Also check the link for more information:

    Why Windows is not find my device?

    http://Windows.Microsoft.com/en-us/Windows-8/why-isn ' t-windows-conclusion-device

    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.

  • How to send / receive files via Wifi Direct... ?

    I found this bike e wifi Direct support. I tried to send files via wifi direct, but I couldn't.

    How to send / receive files with direct wifi without installing any 3rd party application... ?

    Uses of direct wifi... ?

    Sorry about that. Can be a regional thing, I'm not familiar with.

    Back to my question - what types of files you try to move?

  • OutofMemoryException/EOFException when bleow data via HTTP POST

    Hello

    I got OutofMemoryException when I download data with size larger than 2 MB. I use http post by specifying

    'Content-Type', ' multipart/form-data; Boundary = boundaryvalue.

    in the header of the request.

    The stacktrace of the exception of 9000 "BOLD" is as below.

    No detail message

    net_rim_cldc (4AAABCA5)

    DataBuffer

    ensureBuffer

    0 x 3690

    net_rim_cldc (4AAABCA5)

    DataBuffer

    To write

    0x3C52

    net_rim_crypto_1-3 (4AAAC974)

    TLSOutputStream

    To write

    0x45C7

    net_rim_cldc-1 (4AAABCA5)

    DataOutputStream

    To write

    0x221D

    net_rim_os-2 (4AAAC894)

    ClientProtocol

    0x1A1D

    net_rim_os-2 (4AAAC894)

    ClientProtocol

    writeRequest

    0 x 1422

    net_rim_os-3 (4AAAC894)

    HttpProtocolBase

    transitionToState

    0x33D7

    net_rim_os-2 (4AAAC894)

    ClientProtocol

    transitionToState

    0x23D4

    net_rim_os-3 (4AAAC894)

    HttpOutputStream

    Rinse

    0x334C

    ....

    When I test Simulator 8300, I got EOFException.

    No detail message
    net_rim_os-2
    ClientProtocol
     
    0 x 1917
    net_rim_os-2
    ClientProtocol
    readResponse
    0x148A
    net_rim_os-3
    HttpProtocolBase
    transitionToState
    0 x 1613
    net_rim_os-2
    ClientProtocol
    transitionToState
    0 x 2335
    net_rim_os-3
    HttpOutputStream
    Rinse
    0x157E

    ...

    This code seems to work for the file with a size less than 2 MB.

    Any suggestions would be very appeciated.

    Thank you

    Itthipon

    I was able to replicate that when you use an OutputStream.  OutputStream to DataOutputStream switching enabled me to show 3 MB of data.  Please give that a try and making me know if you encounter other problems.

  • How to get a file via http/https?

    Hello

    I need to get files from http and https - this should be done step in the package. How can I do this? There are ftp/sftp get / put on the Toolbox, but I do not see http. Is it possible to get files from http/https? Thank you.

    We have the Windows environment. We use the wget utility to do the job. Run us it through OdiOSCommand step of the package.

  • Connect in HTTP-Post

    Hello

    am I right if I think that it is not possible to connect to rwservlet via http-post, only http-get.
    And that's the reason why I get REP-56048 when I try?

    Thank you.

    Concerning

    Chris

    Hi Chris,
    Take a look at the code in the following document can help.

    Reference
    REP-0788 warning message when the report with a form of parameter of the HTML form on the web (Doc ID 359819.1)

    Best regards, RZ

  • Unable to send or receive files via bluetooth.

    Hey guys, I have a Microsoft bluetooth - the transceiver v3.0 Bluetooth dongle. This dongle came with my entire keyboard and mouse (Wireless Laser Mouse 8000 and Wireless Entertainment Keyboard 7000). In any case, before, when I was with Vista, I could send and receive files via bluetooth dongle.

    After the upgrade to Windows 7 Home Premium 64-bit, I can't do it, but I'm still able to pair my mouse and keyboard for it. When I try to send a file, this message pops up: "Windows could not transfer files. The file could not be sent because the connection could not be established. Make sure the Bluetooth radio is plugged. To try again, click the back arrow. »

    I uninstalled and reinstalled the software IntelliPoint/IntelliTypePro, which would be to reinstall the driver from the transceiver, but the problem persists. In Device Manager, bluetooth radios does not appear.

    Can anyone help me please with this problem?

    I posted it.

    Go to your system and look under Vista drivers and then look under Windows 7 drivers.
    There are Vista drivers and those who would have come on your system. There is no windows
    7 currently available drivers.

    Acer - Driver - go to your system
    http://us.acer.com/acer/service.do?LanguageISOCtxParam=en&miu10einu24.current.attN2B2F2EEF=3750&sp=page15e&ctx2.c2att1=25&miu10ekcond13.attN2B2F2EEF=3750&CountryISOCtxParam=US&ctx1g.c2att92=447&ctx1.att21k=1&CRC=2141378519

    You can also try an add-on BlueTooth complete that adds full system support if you can find one.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • I can no longer send you pictures via my Panasonic Lumix program or the range of file photos. I can via Windows Live Mail but it is tedious to do.

    I can no longer send you pictures via my Panasonic Lumix program or the range of file photos.  I can via Windows Live Mail but it is tedious to do.  The problem started when I change my ISP AOL to Comcast (I think).  When I try to do as I have always done in the past, I get this message:

    Here is the message I get:
    The message could not be sent. The authentication setting are may not be wrong for your e-mail [SMTP] Server outgoing. To resolve this issue, go to help, search for "Troubleshoot Windows Mail" and read the section "I have problems sending e-mail". If you need help to determine the appropriate server settings, contact your e-mail service provider. The rejected e-mail address was '{removed email address}'. ' Subject ' Emailing: PTC Joan Huntsman 001.jpg, account: 'Imap', server: 'smtp.comcast.net', Protocol: SMTP, server response: ' 550 5.1.0 required authentication ', Port: 587, secure (SSL): no, Server error: 550, error number: 0x800CCC78

    Help!  Thank you

    original title: have trouble sending pictures

    How can I set up/configure Outlook Express, Windows Mail & Windows Live Mail to E-mail from Comcast?
    http://customer.Comcast.com/pages/FAQViewer.aspx?GUID=5be34cb1-B190-4FC1-BEAA-818778a54aed

  • Sending parameter using the METHOD (HTTP POST = PROBLEM WEBSERVICE)

    Hello world

    I need help here

    I tried 1 week to the code to send the parameter but the error still result

    It sends no parameter at all the

    Heres my PPC

    ApplicationUI::ApplicationUI(bb::cascades::Application *app) :
            QObject(app)
    {
    
        m_pTranslator = new QTranslator(this);
        m_pLocaleHandler = new LocaleHandler(this);
    
        bool res = QObject::connect(m_pLocaleHandler, SIGNAL(systemLanguageChanged()), this, SLOT(onSystemLanguageChanged()));
        // This is only available in Debug builds
        Q_ASSERT(res);
        // Since the variable is not used in the app, this is added to avoid a
    
        Q_UNUSED(res);
    
        onSystemLanguageChanged();
    
        QmlDocument *qml = QmlDocument::create("asset:///main.qml").parent(this);
    
        qml->setContextProperty("MyApp",this);
        // Create root object for the UI
        AbstractPane *root = qml->createRootObject();
    
        // Set created root object as the application scene
        app->setScene(root);
    }
    
    void ApplicationUI::post(const QString &fullName, const QString &email, const QString &password)
    {
        QNetworkAccessManager connection;
    
        QUrl url("http://www.rws.rajaspot.com/rs_usermanagementclient.php");
        QNetworkRequest req(url);
        //url.addQueryItem("parameter", "14");
    
        QByteArray postData;
    
        postData.append("method=rsnewuser&").append("fullName="+fullName).append("email="+email).append("password="+password);
    
        QNetworkReply* reply = connection.post(req, postData);
        bool ok = connect(reply, SIGNAL(finished()), this, SLOT(postFinished()));
        Q_ASSERT(ok);
        Q_UNUSED(ok);
    
    }
    
    /**
     * PostHttp::onGetReply()
     *
     * SLOT
     * Read and return the http response from our http post request
     */
    void ApplicationUI::postFinished()
    {
        QNetworkReply* reply = qobject_cast(sender());
    
        /* QString response;
        if (reply) {*/
            if (reply->error() == QNetworkReply::NoError) {
                QString result = reply->readAll();
    
                /*const int available = reply->bytesAvailable();
                if (available > 0) {
                    const QByteArray buffer(reply->readAll());
                    response = QString::fromUtf8(buffer);
                }*/
            } else {
                int errorCode = reply->attribute(QNetworkRequest::HttpStatusCodeAttribute).toInt();
                qDebug() << errorCode << endl << reply ->errorString();
            }
    
            reply->deleteLater();
        }
    
    void ApplicationUI::onSystemLanguageChanged()
    {
        QCoreApplication::instance()->removeTranslator(m_pTranslator);
        // Initiate, load and install the application translation files.
        QString locale_string = QLocale().name();
        QString file_name = QString("UsernamePHP_%1").arg(locale_string);
        if (m_pTranslator->load(file_name, "app/native/qm")) {
            QCoreApplication::instance()->installTranslator(m_pTranslator);
        }
    }
    

    Heres my hpp

    #ifndef ApplicationUI_HPP_
    #define ApplicationUI_HPP_
    
    #include 
    
    namespace bb
    {
        namespace cascades
        {
            class Application;
            class LocaleHandler;
        }
    }
    
    class QTranslator;
    
    /*!
     * @brief Application object
     *
     *
     */
    
    class ApplicationUI : public QObject
    {
        Q_OBJECT
    public:
        ApplicationUI(bb::cascades::Application *app);
        virtual ~ApplicationUI() { }
    public:
        Q_INVOKABLE void post(const QString &fullName, const QString &email, const QString &password);
    
      Q_SIGNALS:
                void complete(const QString &info);
      private Q_SLOTS:
                void postFinished();
    
    private slots:
           void onSystemLanguageChanged();
    
    private:
        QTranslator* m_pTranslator;
        bb::cascades::LocaleHandler* m_pLocaleHandler;
    };
    
    #endif /* ApplicationUI_HPP_ */
    

    and this is my my main.qml

    Button{
                id : button
                text : "Register"
                onClicked: {
                   MyApp.post(tf1.text,tf2.text,tfpass.text)
    
                }
                horizontalAlignment: HorizontalAlignment.Center
            }
    

    I need to send the parameter to http://www.rws.rajaspot.com/rs_usermanagementclient.php

    but its like divider by 2, the parameter 'method = rsnewuser' and the content is fullName, email, and password

    What a success, it will show on http://www.rws.rajaspot.com/rs_userclient.php but I try this error code again

    any ideas what should I do?

    Thank you

    I mean not to define QNetworkAccessManager inside the function.

    For example:

    Declare the pointer to QNetworkAccessManager in your header file (all)

    QNetworkAccessManager *connection;
    

    and then set it in the constructor of the app inside the function you or you. In the second case, you must remove QNetworkAccessManager pointer after postFinished. (connection-> deleteLater())

    connection = new QNetworkAccessManager(this);
    

    and the full code of the POST function

    ...post(const QString &fullName, const QString &email, const QString &password)
    {
        QUrl url("http://www.rws.rajaspot.com/rs_usermanagementclient.php");
    
        QUrl postParams;
        postParams.addQueryItem("method", "rsnewuser");
        postParams.addQueryItem("fullName", fullName);
        postParams.addQueryItem("email", email);
        postParams.addQueryItem("password", password);
    
        QNetworkRequest req(url);
        req.setHeader(QNetworkRequest::ContentTypeHeader, "application/x-www-form-urlencoded");
    
        QNetworkReply* reply = connection->post(req, postParams.encodedQuery());
        bool ok = connect(reply, SIGNAL(finished()), this, SLOT(postFinished()));
        Q_ASSERT(ok);
        Q_UNUSED(ok);
    }
    

    It may be useful

     

  • Time increasing while sending data via http repeatedly on the storm

    Hi all!

    My application sends data (in general, this is a picture of ~ 1200 Kb) to the server via http.

    The data are sent ok, but the when I send data several times (without leaving the application) the time devoted to writing the data in the outputStream develops. On first use, it takes usually ~ 50 seconds, the second seconds of ~ 70, the third seconds from ~ 100... I see this problem only on the storm, others (Curve 8900, Bold, Tour) are OK. The url is used on Storm is: http://xxxxxxxxxxxxx.com/mobile/mobile.asmx;deviceside=true

    Here is the code snippet:

    private static WSResponse send(byte[] xmlBytes, WSResponseParser parser) throws Exception {
    
            HttpConnection connection = null;
        OutputStream outputStream = null;
    
           try {
                connection = (HttpConnection)Connector.open(WifiChecker.getURL(URL), Connector.READ_WRITE, true);
    
                connection.setRequestMethod(HttpConnection.POST);
                connection.setRequestProperty("Content-Type", CONTENT_TYPE);
                connection.setRequestProperty("Content-Length", String.valueOf(xmlBytes.length));
    
                outputStream = connection.openOutputStream();
    
                int offset = 0;
                int chunk = DATA_CHUNK_SIZE; // 1024
                int len = xmlBytes.length;
                while (offset < len) {
                    if (offset + chunk >= len) { // avoiding OutOfBounds Exception
                        chunk = len - offset;
                    }
                    outputStream.write(xmlBytes, offset, chunk);
                    offset += chunk;
                }
    
                xmlBytes = null;
    
                String response = getResponseAsSting(connection);
    
                WSResponse wsResponse = null;
                try {
                    wsResponse = parser.getWSResponse(response);
                } catch (Exception e) {
                    throw ApplicationException.invalidWsResponse();
             }
    
                if (!wsResponse.isSuccess()) {
                    throw new WSFailureException(wsResponse);
                }
    
                return wsResponse;
    
            } finally {
                IOUtils.safelyCloseStream(outputStream);
                IOUtils.safelyCloseStream(connection);
                if (xmlBytes != null) {
                    xmlBytes = null; // notify VM it can safely free the RAM
                }
            }
    

    I thought it may be a memory problem, so I manually cancel xmlBytes, but which does not solve the problem.

    Any ideas?

    Thanks in advance,

    Arhimed

    P. S.

    There is no question about Simulator, only on a real device of the storm.

    MSohm, thanks for your response.

    Fortunately, I have just fixed the problem. The problem was not in the code above, but in the code that made the xmlBytes. I converted bytes of the image base64 and looks like I did it dangerously on the use of the memory.

    Thanks again for your attention to this thread!

  • I can't receive files via bluetooth but I can't send easily

    I use Toshiba laptop satellite C850-P0011 windows 8 I'm trying for months to solve this problem in the past for next choice of files option to receive for repairs but useless he cant still in the Bluetooth does not work, I went to the Web from Toshiba site too but my model driver is not available if no other option is there that do you suggest.

    Thank you.

    Hi Alexander,

    Thanks for posting the query on Microsoft Community.

    I'm sorry to know that you are unable to receive files via Bluetooth. I appreciate your efforts to try to resolve the problem.

    1. What happens when you try to receive files, you get the error message?
    2. You have uninstalled the Bluetooth driver?

    If this isn't the case, then try to uninstall the Bluetooth drivers.

    1. Press the Windows key + R, type devmgmt.msc.
    2. Expand the drivers Bluetooth, click Bluetooth device.
    3. Right-click and then select Properties and choose Uninstall.
    4. Click OK.

    You can re - install either by visiting the website of manufacturers or Windows updates.

    For reference:

    Updated drivers

    http://Windows.Microsoft.com/en-us/Windows/network-connection-problem-help#network-problems=Windows-81&V1H=win81tab5&V2H=win7tab1&V3H=winvistatab1&v4h=winxptab1

    If you can't find the drivers for Windows 8, you can install Windows 7 Bluetooth drivers in compatibility mode and check if it helps.

    Please download the drivers for Windows 7 and install in compatibility mode:

    Make older programs in this version of Windows
    http://Windows.Microsoft.com/en-in/Windows7/make-older-programs-run-in-this-version-of-Windows

    You can also refer to steps 2 and 3 in the link below and check if it helps.

    Why isn't Windows find my Bluetooth or other wireless device? :

    http://Windows.Microsoft.com/en-in/Windows-8/why-isn ' t-windows-conclusion-device

    I hope this helps to solve the issue. If the problem persists, get back to us. We will be happy to help you.

Maybe you are looking for