Hi,

I have a ReST application that I've got a demo client implemented in
Firefox, except for one painful corner case: I cannot work out how to
hand-off a binary response for saving as a file when using MDC's XHR.
This request accepts a zip archive and returns a processed archive
based on the contents.

Is what I would like to do theoretically possible, (e.g. by using the
associated nsiChannel) ?

The File API / FileUpload drafts on dev.w3.org imply that "Save ..."
is intended to be supported by a user agent.

An example of something close is that if I have base64 encoded data as
a result, I can use the data URI scheme:

   var xhr = ...
   // do request
   var result = xhr.responseText;
   window.open("data:text/plain;base64 ," + result);

After a lot of digging around, I've still not found if this is
possible with some privileged operations and the Mozilla APIs.

Does anyone have any pointers, or should I just write my client in
Java?
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to