Is it possible to use an Orbeon XForm to upload large files to a
non-Orbeon service running within the same Tomcat JVM? I'm writing the
UI for a configuration management system that must support very large
files, and the person responsible for the server side knows nothing
about Orbeon pipelines.
The problems I think might exist are:
Thanks, -Jim -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
You could store the files in a directory on the file system and call a url in the other webapp to tell it where to find the file etc.
Ryan ------------------------ Ryan Puddephatt FIX Developer Fidessa LatentZero 1 Alfred Place London WC1E 7EB Office: +44 (0) 20 7462 4200 Direct: +44 (0) 20 7323 6112 Blackberry: +44 (0) 79 8539 2458 Fax: +44 (0) 20 7462 4242 Email: [hidden email] Web: http://www.latentzero.com Sent from my blackberry device ----- Original Message ----- From: Jim Logan <[hidden email]> To: [hidden email] <[hidden email]> Sent: Tue Aug 05 18:49:31 2008 Subject: [ops-users] Non-Orbeon Upload Service Is it possible to use an Orbeon XForm to upload large files to a non-Orbeon service running within the same Tomcat JVM? I'm writing the UI for a configuration management system that must support very large files, and the person responsible for the server side knows nothing about Orbeon pipelines. The problems I think might exist are: * Unusual URLs that cannot be used outside of an Orbeon pipeline * Large files may exhaust memory Can anyone help, please? Thanks, -Jim ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Ryan Puddephatt wrote:
> You could store the files in a directory on the file system and call a url in the other webapp to tell it where to find the file etc. > Hi Ryan, Thanks for the suggestion. I'm not sure how to do that, though, as I've only read through the pipeline stuff casually. Can you give me any more hints? -Jim -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Jim Logan-3
You could use the file serializer to save the file, I think there is a processor to create a uuid, if not you could create one so all the files are uniquely names
Then call a service in the other app something like /app/service?file=blah.zip Ryan ------------------------ Ryan Puddephatt FIX Developer Fidessa LatentZero 1 Alfred Place London WC1E 7EB Office: +44 (0) 20 7462 4200 Direct: +44 (0) 20 7323 6112 Blackberry: +44 (0) 79 8539 2458 Fax: +44 (0) 20 7462 4242 Email: [hidden email] Web: http://www.latentzero.com Sent from my blackberry device ----- Original Message ----- From: Jim Logan <[hidden email]> To: [hidden email] <[hidden email]> Sent: Tue Aug 05 21:13:26 2008 Subject: [ops-users] Re: Re: Non-Orbeon Upload Service Ryan Puddephatt wrote: > You could store the files in a directory on the file system and call a url in the other webapp to tell it where to find the file etc. > Hi Ryan, Thanks for the suggestion. I'm not sure how to do that, though, as I've only read through the pipeline stuff casually. Can you give me any more hints? -Jim ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Jim Logan-3
Jim,
On Tue, Aug 5, 2008 at 1:13 PM, Jim Logan <[hidden email]> wrote: > Thanks for the suggestion. I'm not sure how to do that, though, as I've only > read through the pipeline stuff casually. Can you give me any more hints? Let's see if this works for you: if the file is uploaded with an xforms:upload, if you set the type of the node to be xs:anyURI, then you you will have a URI pointing to a temporary file in that node. The file will be deleted by Orbeon Forms when the user's session expires. So you can just pass this URI to your other application which can then read the content of the file. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Alessandro Vernet wrote:
> Jim, > > On Tue, Aug 5, 2008 at 1:13 PM, Jim Logan <[hidden email]> wrote: > >> Thanks for the suggestion. I'm not sure how to do that, though, as I've only >> read through the pipeline stuff casually. Can you give me any more hints? >> > > Let's see if this works for you: if the file is uploaded with an > xforms:upload, if you set the type of the node to be xs:anyURI, then > you you will have a URI pointing to a temporary file in that node. The > file will be deleted by Orbeon Forms when the user's session expires. > So you can just pass this URI to your other application which can then > read the content of the file. > > Alex > What would that application get if I just did a submission to it that included the file upload with the xs:anyURI type of node? Would it be able to use the temporary file URI? Would it be a normal "file:" URI, or a special Orbeon URI? Thanks, -Jim -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Jim Logan-3
You can.
From XForms, this is possible: http://www.orbeon.com/ops/doc/reference-xforms-2#submission-binary But the file is temporarily stored in memory, which we consider a bug: http://tinyurl.com/5zwhq4 -Erik On Aug 5, 2008, at 10:49 AM, Jim Logan wrote: > Is it possible to use an Orbeon XForm to upload large files to a non- > Orbeon service running within the same Tomcat JVM? I'm writing the > UI for a configuration management system that must support very > large files, and the person responsible for the server side knows > nothing about Orbeon pipelines. > > The problems I think might exist are: > • Unusual URLs that cannot be used outside of an Orbeon pipeline > • Large files may exhaust memory > Can anyone help, please? > > Thanks, > -Jim > > > -- > You receive this message as a subscriber of the [hidden email] > mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws Orbeon Forms - Web Forms for the Enterprise Done the Right Way http://www.orbeon.com/ -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by Jim Logan-3
Jim,
On Wed, Aug 6, 2008 at 8:24 AM, Jim Logan <[hidden email]> wrote: > What would that application get if I just did a submission to it that > included the file upload with the xs:anyURI type of node? Would it be able > to use the temporary file URI? Would it be a normal "file:" URI, or a > special Orbeon URI? Yes, it will be a regular file: URI, and the file will be in your temp directory (not in the Orbeon Forms resources). Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |