Erik,

When I upload a document I have access to the xform instance for the
page.  It has the following content (abbreviated)

<file>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4NCjxjYWY6Q291c.
... </file>

I would like to be able to be to do two things, save this file to the
file system, and convert this to a document so that I can manipulate it
in an XPL pipeline.

I think what you are saying is that the file serializer does not
currently support base64 encoding, so I can not use the xforms upload
tool to save it to disk.

What I meant by 'as text'(poorly said) was that I need to be able to
access contents of the document in an XPL so that I can manipulate it,
including wrapping it in a soap envelope.

I have been playing around with the Delegation Processor and am
wondering if it possible to use it with a non-rpc based webservice.  IE,
post a soap envelope to a url and receive a response.  The structure of
them message will determine what operations are preformed, so there is
no need to pass any "operations" to the service.

I hope this is clearer

Thanks

Peter  















-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Erik Bruchez
Sent: Tuesday, March 23, 2004 4:31 PM
To: OXF Users
Subject: Re: File Upload

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

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

Reply via email to