Click to See Complete Forum and Search --> : using XMLHTTP to transfer binary attachments ?


dk
03-22-2000, 12:51 AM
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

Phil Weber
03-22-2000, 04:06 AM
> 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

dkjnkm
03-22-2000, 11:00 AM
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
>
>

Phil Weber
03-22-2000, 12:37 PM
> 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