using XMLHTTP to transfer binary attachments ?


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: using XMLHTTP to transfer binary attachments ?

  1. #1
    dk Guest

    using XMLHTTP to transfer binary attachments ?

    Can it be done? if the file needs to be base 64 encoded before enclosing it
    in tags, how do you take care of the <,> and other chars. that might show up
    in the encoded file/string?

    any pointers/examples will be helpful.

    and while i am at it, if i am using XMLHTTP from VB app, does it go over the
    firewall/proxy or i need to do something special?

    Thanks




  2. #2
    Phil Weber Guest

    Re: using XMLHTTP to transfer binary attachments ?

    > Can it be done?

    DK: When storing binary data in XML, I generally store it as hex strings,
    e.g.:

    <attachment>
    FF D8 FF E0 00 10 4A ...etc.
    </attachment>

    ---
    Phil Weber



  3. #3
    dkjnkm Guest

    Re: using XMLHTTP to transfer binary attachments ?

    Have you encountered any issues transfering large files like word documents
    or jpeg etc ?

    Thanks


    "Phil Weber" <pweber@teleport.com> wrote in message
    news:38d87c28$1@news.devx.com...
    > > Can it be done?

    >
    > DK: When storing binary data in XML, I generally store it as hex strings,
    > e.g.:
    >
    > <attachment>
    > FF D8 FF E0 00 10 4A ...etc.
    > </attachment>
    >
    > ---
    > Phil Weber
    >
    >




  4. #4
    Phil Weber Guest

    Re: using XMLHTTP to transfer binary attachments ?

    > Have you encountered any issues transferring large
    > files like word documents or jpeg etc?


    I've never tried storing a large binary file in an XML document, but I can't
    imagine there would be any inherent difficulties (other than performance --
    it obviously takes time to convert a large file into hex strings, and the
    result will be at least twice as large as the original, so it will take
    longer to transfer).
    ---
    Phil Weber



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center