• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WO Long Response and iPhone
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WO Long Response and iPhone


  • Subject: Re: WO Long Response and iPhone
  • From: email@hidden
  • Date: Fri, 15 Jan 2010 18:55:25 -0500

I have the code to do this ... I'll send it. You get a multipart iterator on the request and then get a stream from the part.

Sent from my iPhone

On Jan 15, 2010, at 6:41 PM, "Chuck Hill"<email@hidden> wrote:


On Jan 15, 2010, at 1:49 PM, Joe Moreno wrote:

Chuck,

I think the "streamToFilePath" binding is what you need to use. What bindings are you using?

I'm not using a WODynamicElement (i.e. WOFileUpload). This is a direct action for third party APIs to call so there is no UI. Or, am I misunderstanding your question?

That does make it harder. See WORequest.contentInputStream() and also on your disk /Developer/Examples/JavaWebObjects/FileUpload


Chuck


On Jan 14, 2010, at 21:47:45, Chuck Hill wrote:

It has been a while since I implemented this. I think the "streamToFilePath" binding is what you need to use. What bindings are you using?

Chuck


On Jan 14, 2010, at 8:44 PM, Joe Moreno wrote:

Chuck,

I hadn't considered that. I am using a direct action form post to handle the upload.

- Joe

On Jan 14, 2010, at 20:40:08, Chuck Hill wrote:

Are you using the streaming handler for uploads? If you are, there should not be any timeouts from the adaptor. I've seen uploads of large files over slow connections to GVC.SiteMaker go on for a very, very long time with no timeout.


Chuck


On Jan 14, 2010, at 8:27 PM, Joe Moreno wrote:

Thanks for the reply.

I wouldn't up the time on the adaptor because other clients who are using that instance will get blocked and may reach their timeouts.

In my case, I don't think upping the adaptor timeout will block since WOAllowsConcurrentRequestHandling is set to true. Does that sound correct?


On Jan 14, 2010, at 15:57:08, Andrew Lindesay wrote:

Hello Joe;

My LEWOStuff framework (JSON-RPC) has a system whereby a file is broken up into little chunks and fired into a WOA bit by bit in sequence into a stream. I haven't explicitly tested this from iPhoneOS, but it has been used in a production system from MacOS-X to move video files around. You could build something similar to this.

I wouldn't up the time on the adaptor because other clients who are using that instance will get blocked and may reach their timeouts.

cheers.

Does anyone have a recommendation on how to manage a file upload from say, an iPhone, to a WO app (direct action) that takes longer than the WO adaptor time out? Or, should I just set the WO adaptor timeout to something like five or ten minutes to handle slow/flaky EDGE connections?

___ Andrew Lindesay www.lindesay.co.nz


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden

-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects










-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects










-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects








_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden

_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >WO Long Response and iPhone (From: Joe Moreno <email@hidden>)
 >Re: WO Long Response and iPhone (From: Andrew Lindesay <email@hidden>)
 >Re: WO Long Response and iPhone (From: Joe Moreno <email@hidden>)
 >Re: WO Long Response and iPhone (From: Chuck Hill <email@hidden>)
 >Re: WO Long Response and iPhone (From: Joe Moreno <email@hidden>)
 >Re: WO Long Response and iPhone (From: Chuck Hill <email@hidden>)
 >Re: WO Long Response and iPhone (From: Joe Moreno <email@hidden>)
 >Re: WO Long Response and iPhone (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: WO Long Response and iPhone
  • Next by Date: ERXKey/MySQL relationship not null
  • Previous by thread: Re: WO Long Response and iPhone
  • Next by thread: Re: WO Long Response and iPhone
  • Index(es):
    • Date
    • Thread