B4J Question Http Post question

Discussion in 'B4J Questions' started by narek adonts, Sep 8, 2015.

  1. narek adonts

    narek adonts Well-Known Member Licensed User

    Hi,

    I am trying to upload an Image to the server. I am trying to upload it with httpjob.PostFile. I would like to upload also a small thumbnail of that image with the same request. I tried to pass the thumbnail image with base64 string within the URL parameters but without success( URI too long).
    How can I achieve to upload 2 Files with the same request?

    Narek
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    How is the server implemented?
     
  3. narek adonts

    narek adonts Well-Known Member Licensed User

    B4J jetty with Handlers
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Simplest solution is to zip both files with the Archiver library and then unzip them on the server.
     
  5. narek adonts

    narek adonts Well-Known Member Licensed User

    I decided to implement this with 2 requests instead of 1.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice