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 



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

There is upload and upload, I guess: OXF support the HTTP upload. From
there, 
the example sends the uploaded file to a Web service, and this part is 
unrelated to the HTTP upload. What are you trying to achieve?

-Erik

Peter Charles wrote:

> Erik,
> 
> It looks like the xforms example actually uses a webservice to upload
> the file. The service then provides a URL from which the calling app
can
> access the file.  I don't think Alex would appreciate me using his
> service within our application. :) 
> 
> I was thinking that the best thing to do might be to use the
Delegation
> processor to access a java bean that uses the commons-fileupload code.
> 
> Thanks,
> 
> PEter
> 
> 
> 
> 
> 
> -----Original Message-----
> From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
> On Behalf Of Erik Bruchez
> Sent: Monday, March 22, 2004 9:43 PM
> To: OXF Users
> Subject: Re: File Upload
> 
> Hi Peter,
> 
> We support file upload from XForms:
> 
>    http://www.orbeon.com/oxf/examples/xforms-upload
> 
> The current XLS generator handles the upload on its own:
> 
>    http://www.orbeon.com/oxf/doc/processors-charts-spreadsheets#N103A4
> 
> Note that we will have much better support for file upload in the
> upcoming 
> 2.5, including enhanced support from XFroms, streaming (which allows
you
> to 
> upload very large files independently from the amount of RAM you
have),
> better 
> support for binaries, integration with the SQL processor, and a new
> Binary 
> serializer.
> 
> -Erik
> 
> Peter Charles wrote:
> 
> 
>>Hi,
>>
>>I have a question about your file upload example.  In it you use the
>>delegation processor to access a file upload web-service.  You do
>>however include the commons-fileupload-1.0-beta-1.jar in the 2.2
>>release.  Which suggests that file upload is used in some way in OXF.
> 
> 
>>You also use file upload in the excel example, however it is unclear
> 
> how
> 
>>you are accomplishing this.  Are you calling the fileupload package
> 
> from
> 
>>the xls-generator processors?  
>>
>>Is there an example that uses the commons-fileupload to upload a file
> 
> or
> 
>>is it only used from with in other procesors?
>>
>>Thanks
>>
>>Peter
>>
>>
>>-----<CDE/>-----
>>Center for Document Engineering
>>University of California, Berkeley
>>cde.berkeley.edu
> 
> 
> _______________________________________________
> 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

_______________________________________________
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