[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Posting pdf file



   When you base64 encode 3 character is represented a 4 characters. So
   you should read 48k of data and convert it to base64 so that you will
   have 64k of base64 data. Write out this chunk of data to an IFS file
   till you finished reading the file in 48k chunks. Once you have the
   base64 file ready, you can use that data to create another XML from
   it( i believe you are trying to make this base64 data as an XML
   element). This can XML can be used on http_url_post_stmf_xml for XML
   post from a STMF.
   Hope it helps.
   Thanks,
   Musthafa

   On Wed, Feb 10, 2010 at 9:14 AM, Shahar Mor <[1]shahar@xxxxxxxxxx>
   wrote:

       Hello all,
       Iam trying to find an example for doing the following - call web
       service that includes a pdf file in base64 the pdf file can be as
     long
       as 2 to 3 mb. The result is straight forward (i.e it can be
     handeled
       by the xpat handling procedure.
       since the longest variable length is 65535 bytes i thought on the
       following,
       * Create temporary ifs file (http_tempfile ?)
       * write header of soap to the ifs file
       * write encoded base64 of the pdf file to the ifs file.
       * write footer of soap message.
       * run the web service from the stream file.
       Did anybody tried this ?
       What is the api to use in order to send request with soapaction
     using
       stream file and getting response to xpat procedure ?
       Thanks
     -------------------------------------------------------------------
     ----
     This is the FTPAPI mailing list.  To unsubscribe, please go to:
     [2]http://www.scottklement.com/mailman/listinfo/ftpapi
     -------------------------------------------------------------------
     ----

   --
   Thanks,
   Musthafa

References

   1. mailto:shahar@xxxxxxxxxx
   2. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------