When you say "as text", do you mean the uploaded file was a text file
originally?  Could you also elaborate on "convert the binary data into
text such that I can access it"?

The current 2.5 snapshots support serializing an uploaded file from
xs:base64Binary to HTTP, but not yet to a file using the File
serializer. This could be added easily though. As far as sending it by
SOAP, I need the answer to the first questions above, but in the OXF
2.2 Upload example, this is exactly what is done.

-Erik

Peter Charles wrote:

> Erik,
>
> Thanks, I was misunderstanding the example.
>
> I am trying to achieve relatively simple file upload.  I need to upload
> a file, save it to disk and also pass it (as text) in a soap message to
> a webservice.
>
> I am able to access the binary contents of the file, but have not been
> able to write that to disk or access the contents of the file
>
> Two questions I have are:
>
> How do I serialize a non-text file to disk? (the file serializer
> documentation says that it must take text/html or text/plain content)
>
> And once I have uploaded a file, (assume it is xml), how can convert the
> binary data into text such that I can access it.?
>
> Thanks for your patience.
>
> Peter

_______________________________________________
oxf-users mailing list
[EMAIL PROTECTED]
http://mail.orbeon.com/mailman/listinfo/oxf-users

Reply via email to