Return-Path: X-Original-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-flex-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF25199A0 for ; Wed, 28 Mar 2012 21:07:02 +0000 (UTC) Received: (qmail 40105 invoked by uid 500); 28 Mar 2012 21:07:02 -0000 Delivered-To: apmail-incubator-flex-dev-archive@incubator.apache.org Received: (qmail 40069 invoked by uid 500); 28 Mar 2012 21:07:02 -0000 Mailing-List: contact flex-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: flex-dev@incubator.apache.org Delivered-To: mailing list flex-dev@incubator.apache.org Received: (qmail 40061 invoked by uid 99); 28 Mar 2012 21:07:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 21:07:02 +0000 X-ASF-Spam-Status: No, hits=2.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_REPLY,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of avinashapr9@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Mar 2012 21:06:56 +0000 Received: by pbcum15 with SMTP id um15so2104286pbc.6 for ; Wed, 28 Mar 2012 14:06:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ezeumBEO8TYkVFqmik88I/x0nu/FGU1RSg2ErW6+UAY=; b=YVfG5FvR8ZnvH5cYTWi5TY1qBahFWrqoHaDfXOYX4eG6RtVVuEm6Mmw4b8XWS+UAk4 bSA1DCs45f0t2sX67kVGXg3BPdTGICISmddZy9wt45A1J0NkSxol02ikxmXjmz9iqtxr xpAy3BkMc/R+hbaC7Qu3LYKMi4FE5q6dik99uK+MQu5c14WHyDTc+uEewTWRhCV/GZ/t 2XpjHfH+aVNZoWD5v1otYZoib9MX4JFSFv2T/R6P8wKN3myVV+0eh0n6FRz+AhVe4H6O dr6gx6XsiOuBK6WULhUEOQU9/9zXrWpYVsJhXEII8lBEI1lQ3yVD+NhNPnxI2LdCC1t5 ewmQ== Received: by 10.68.72.138 with SMTP id d10mr76127391pbv.15.1332968794132; Wed, 28 Mar 2012 14:06:34 -0700 (PDT) MIME-Version: 1.0 Received: by 10.68.225.36 with HTTP; Wed, 28 Mar 2012 14:05:53 -0700 (PDT) In-Reply-To: References: <-5529568150657010425@unknownmsgid> From: Avinash Narayanan Date: Thu, 29 Mar 2012 02:35:53 +0530 Message-ID: Subject: Re: SFTP file transfer for large files using flex To: flex-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=f46d040f9bae78931f04bc53fb95 --f46d040f9bae78931f04bc53fb95 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi All, Looks like my little problem started quite the discussion!!. Ok, need to give a few updates. I managed to upload 1.07 Gb file (windows image file actually) via fileReference using HTTP. Still no luck with HTTP. And the data upload is NOT causing any increase in the usage of RAM! (very strange). The reason why I need the air app to upload large files is that we're creating some sort of sales portal using Adobe Air and the client wants to be able to upload these really large files which are supposed to make sense to the client regarding the engagement. I have no clue what this file is for except that its upwards of 1Gb till 2Gb. Hope this helps! Thanks Avinash Y 2012/3/29 Jaros=C5=82aw Szczepankiewicz > Supporting rest without tunneling through post is not possible due to > limitations in flash player and due to plugin api limitations. Also full > rest answers using full http response codes are not possible due to the > same limitations of browser plugin api :( > 28-03-2012 22:46 u=C5=BCytkownik "Hugo Matinho" napi= sa=C5=82: > > > I know this might be the wrong place to ask and there is of course the > > limitation on how the FP handles the HTTP transport but couldn't we do > > something about flex supporting REST natively it's been several years > > already and yes there's blazeDS and GraniteDS and others but most > > JavaScript libraries support it natively most modern browsers implement > > it and it wasn't made available on the player because browsers didn't > > had it back then but come on it's 2012 some rest support would be nice > > > > Sent from my Windows Phone > > From: Ariel Jakobovits > > Sent: 28-03-2012 21:07 > > To: flex-dev@incubator.apache.org > > Subject: Re: SFTP file transfer for large files using flex > > > I might be off, but I don't think an ANE is, or would be, part of Fle= x. > > It is an extension for AIR. > > > > Flex has components intended only for AIR (such as FileSystemList), > > and offering a component that exists as an ANE/AS combo that can be > > added to a project to upload large files does not seem out of the > > scope of Flex. > > > > Ariel Jakobovits > > Email: arieljake@yahoo.com > > Phone: 650-690-2213 > > Fax: 650-641-0031 > > Cell: 650-823-8699 > > > > > > ________________________________ > > From: JP Bader > > To: flex-dev@incubator.apache.org; Ariel Jakobovits > > > Sent: Wednesday, March 28, 2012 12:04 PM > > Subject: Re: SFTP file transfer for large files using flex > > > > I might be off, but I don't think an ANE is, or would be, part of > > Flex. It is an extension for AIR, which is still controlled by Adobe. > > If we want to see about spawning new threads that could consume a > > massive dump of data files, process, and pass those into a service > > (FTP/SFTP/REST/Telnet/etc), that seems like a bit outside of scope of > > the Flex project, and more in line w/ Tamarin. > > > > We are working on the framework, which currently has limitations to > > the FP and AIR (which are Adobe). Potentially once we have access to > > Falcon(JS), there might be alternatives, but my question is, what 2GB > > file are you trying to have FP/AIR upload? There might be some tricks > > to chunking out the flow of data using byte arrays, and clearing them > > out as you go along with loading them to whatever repository/location > > you need, but I can't think of too many desktop applications that will > > not just freeze up when you load a 2GB (or any major file) into it. > > For video, that's one thing, but beyond a certain size, and normally > > the machine itself will slow down/become unresponsive. > > > > Most enterprises where I have done work, accessing and uploading > > massive amounts of data would be FTP via terminals or clients, not > > through a separate app (especially not AIR). Maybe I'm missing the > > reason behind wanting FP/AIR to handle that much data, but given the > > limitations of FP/AIR for processing data, I am not sure how you would > > approach building that into the framework. I guess examples of > > BigAssCanvas show that you could stitch together large files (larger > > than FP would allow), but once you get to a certain size, it becomes > > unresponsive. > > > > If there is a way to do it, I apologize for going off tangent, but we > > need to focus on getting bugs fixed and improving the framework first, > > and I'm not sure this is an improvement of the current framework so > > much as a nice feature request. > > > > Regards, > > > > On Wed, Mar 28, 2012 at 1:14 PM, Ariel Jakobovits > > wrote: > > > would we consider developing ANEs to incorporate into Flex? > > > > > > Ariel Jakobovits > > > Email: arieljake@yahoo.com > > > Phone: 650-690-2213 > > > Fax: 650-641-0031 > > > Cell: 650-823-8699 > > > > > > > > > ________________________________ > > > From: Marcus Fritze > > > To: flex-dev@incubator.apache.org; Marcus Fritze < > > marcus.fritze@googlemail.com> > > > Sent: Wednesday, March 28, 2012 10:34 AM > > > Subject: Re: SFTP file transfer for large files using flex > > > > > > Hi, > > > > > > as maybe all know Flash supports only a file size of 100MB. > > > > > > from the docs: > > > > > > FileReference -> upload() > > > > > >> Although Flash Player has no restriction on the size of files you ca= n > > upload or download, the player officially supports uploads or downloads > of > > up to 100 MB. > > > > > > I experienced that an upload / download of a larger file via Flash > > (FileReference) is possible. > > > > > > I agree with Avinash! I think this is a good place to discuss this > topic > > (and not the stack overflow forum). Because this mailing list is the > place > > where we can improve the Flex SDK / Flash. > > > > > > Correct me if I am wrong, but an upload of large files (2 GB or more) > is > > currently not possible in Flash. And maybe we can check if it is possib= le > > to enable a larger file upload / download via Flex / Flash. This featur= e > is > > very useful for Enterprise RIA's. I have already developed such an app > and > > have the same problem. > > > > > > Thanks! > > > > > > Marcus > > > > > > Am 28.03.2012 um 16:55 schrieb Avinash Narayanan: > > > > > >> Hi JP, > > >> > > >> Thanks for taking time to reply! Stackoverflow had questions like th= is > > but > > >> not satisfactory answers. This was my last ditch effort since the > other > > >> option is to write my own SFTP plug (which clients wont pay me to do > > :|). > > >> > > >> As for the apps, this upload needs to be 'part' of a desktop > application > > >> written in adobe air so can't use any of these other tools :( > > >> > > >> Thanks > > >> Avinash Y > > >> > > >> > > >> On Wed, Mar 28, 2012 at 6:54 PM, JP Bader wrote: > > >> > > >>> Hi Avinash, > > >>> > > >>> My quick take on this is why you would want to recreate a tool for > > >>> this? Aren't there plenty of free SFTP apps already? Why not take > > >>> advantage of one of them? Tortoise, Cute, WinSCP, FileZilla, etc. > > >>> > > >>> Also, questions like these might be better asked on other forums li= ke > > >>> stack overflow. This mailing list is for questions and development > > >>> regarding the next release of Flex. > > >>> > > >>> Regards, > > >>> > > >>> JP > > >>> > > >>> On Wed, Mar 28, 2012 at 3:16 AM, Avinash Narayanan > > >>> wrote: > > >>>> Hi All, > > >>>> > > >>>> I know this community is meant for future development of Apache Fl= ex > > but > > >>>> I'm a little lost here. I need to upload ~2Gb file from my local > > machine > > >>> to > > >>>> a url via an air app using sftp. problem is we don't have sftp lib > > >>>> available. > > >>>> > > >>>> Also, I'm confused as to why in forums it says the flash player > needs > > to > > >>>> take the entire file into memory before loading it but I don't see > any > > >>>> memory increase in my task manager (using the fileReference class)= . > > >>>> > > >>>> Another thing I wanted to know is how best to split up the file in= to > > >>> chunks > > >>>> for multi-part loading? Any help in any of these areas will be > > supremely > > >>>> helpful! > > >>>> > > >>>> I've already seen the following links > > >>>> > > >>>> http://www.actionscript.org/forums/showthread.php3?t=3D181895 > > >>>> http://forums.adobe.com/thread/631103 > > >>>> http://blog.ansuz.nl/index.php/2011/02/11/flex-ftp-abort/ > > >>>> http://maliboo.pl/projects/FlexFTP/ > > >>>> http://forums.adobe.com/thread/245294 > > >>>> > > >>> > > > http://blog.flexexamples.com/2007/09/21/uploading-files-in-flex-using-the= -filereference-class/ > > >>>> > > >>>> Thanks in Advance. > > >>>> > > >>>> > > >>>> With Warm Regards, > > >>>> Avinash > > >>> > > >>> > > >>> > > >>> -- > > >>> JP Bader > > >>> Principal > > >>> Zavteq, Inc. > > >>> @lordB8r | jp@zavteq.com > > >>> 608.692.2468 > > >>> > > > > > > > > -- > > JP Bader > > Principal > > Zavteq, Inc. > > @lordB8r | jp@zavteq.com > > 608.692.2468 > > > --f46d040f9bae78931f04bc53fb95--