Return-Path: X-Original-To: apmail-flex-users-archive@www.apache.org Delivered-To: apmail-flex-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 5BE4818171 for ; Sat, 4 Jul 2015 13:54:34 +0000 (UTC) Received: (qmail 42211 invoked by uid 500); 4 Jul 2015 13:54:34 -0000 Delivered-To: apmail-flex-users-archive@flex.apache.org Received: (qmail 42180 invoked by uid 500); 4 Jul 2015 13:54:34 -0000 Mailing-List: contact users-help@flex.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@flex.apache.org Delivered-To: mailing list users@flex.apache.org Received: (qmail 42168 invoked by uid 99); 4 Jul 2015 13:54:33 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jul 2015 13:54:33 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 51FB41A66FF for ; Sat, 4 Jul 2015 13:54:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.203 X-Spam-Level: **** X-Spam-Status: No, score=4.203 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=comcast.net Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id fJL48XDJTIoJ for ; Sat, 4 Jul 2015 13:54:23 +0000 (UTC) Received: from resqmta-po-04v.sys.comcast.net (resqmta-po-04v.sys.comcast.net [96.114.154.163]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id CE1202095C for ; Sat, 4 Jul 2015 13:54:22 +0000 (UTC) Received: from resomta-po-03v.sys.comcast.net ([96.114.154.227]) by resqmta-po-04v.sys.comcast.net with comcast id oDu81q0014ueUHc01DuG9x; Sat, 04 Jul 2015 13:54:16 +0000 Received: from resmail-po-271v.sys.comcast.net ([162.150.177.26]) by resomta-po-03v.sys.comcast.net with comcast id oDuG1q0030aZMgq01DuGWK; Sat, 04 Jul 2015 13:54:16 +0000 Date: Sat, 4 Jul 2015 13:54:16 +0000 (UTC) From: modjklist@comcast.net To: "users, apache" Message-ID: <84018151.6351239.1436018056062.JavaMail.zimbra@comcast.net> In-Reply-To: References: <899061892.6132457.1435961914270.JavaMail.zimbra@comcast.net> Subject: Re: methods for web app to read text file on client's computer? MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6351238_1007113115.1436018056061" X-Originating-IP: [::ffff:98.234.253.172] X-Mailer: Zimbra 8.0.7_GA_6031 (ZimbraWebClient - SAF7.1 (Mac)/8.0.7_GA_6031) Thread-Topic: methods for web app to read text file on client's computer? Thread-Index: I2avhfUlM98U0R97NUXbWNNUpxLjNA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1436018056; bh=G2jLpoyz+r12GFYLwYZ/pv4joS3373+llhWCzq6ia4A=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=tbMrOmPF6ckFmdBJQqAqUi/Ga/q/oTHNY11C2yoSJMIf3AjALjZPhN+g1xpxcN6ip 23NsKGUAqa6HXbJV2NP0JqZMMmMCgzr1WoFbi/CgrN72U0sVgeRSBldDQ0qGW39r98 Usr0a51zqyYR1C/qnf1ehbMQ2lEdDX6WSyLNQ78iEhEnHN90MlA7Rt5MbR4kMhzN+W y80x5L5UPNy9AqYS9aMZDt0JylJ9hM+DY8eQHx+UVO6tpdSEktujOrh36PxJIAyuen jwHufo7ca9bk8DOx+qix9YmQJbdQkpzi7qFdoxof9+gGbz9j82+YlWSSzIck8e0lE8 ITWeEn9xi9HIg== ------=_Part_6351238_1007113115.1436018056061 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Correct me if I'm wrong, but these functions by default can only read client files if the swf runs locally on their computer. If I'm making a web app running in a browser, the sandbox prevents accessing client file contents. I'm thinking only AIR allows permissions for reading client files. http://help.adobe.com/en_US/ActionScript/3.0_ProgrammingAS3/WS5b3ccc516d4fbf351e63e3d118a9b90204-7e3f.html I prefer to integrate the file reading/processing into my existing web app, rather than give the customer a 2nd application to use (e.g. AIR). But I don't see a way around this. Can anyone comment if I missed something? ----- Original Message ----- From: "pkumar.flex" To: users@flex.apache.org Sent: Friday, July 3, 2015 9:35:55 PM Subject: Re: methods for web app to read text file on client's computer? check for URLLoader & FileReference for file reading from client computer. CSV parsing code , you can search on google. On Sat, Jul 4, 2015 at 3:26 AM, modjklist [via Apache Flex Users] < ml-node+s2333346n10704h9@n4.nabble.com> wrote: > Looking for recommendations to read a text file in Flex web app (not AIR). > > Does a web app even have permission to read a text file located on the > client's computer? > > Text file is comma-separated data arranged in columns. The total number of > lines isn't known ahead of time. > > Ideally I'd like to read the file line by line (each line ending with a \n > character), the split the line based on the comma character to identify and > process individual elements. > > > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://apache-flex-users.2333346.n4.nabble.com/methods-for-web-app-to-read-text-file-on-client-s-computer-tp10704.html > To unsubscribe from Apache Flex Users, click here > > . > NAML > > -- *Regards,* Prashant Kumar* | *Mob.: +91 8408811225 -- View this message in context: http://apache-flex-users.2333346.n4.nabble.com/methods-for-web-app-to-read-text-file-on-client-s-computer-tp10704p10708.html Sent from the Apache Flex Users mailing list archive at Nabble.com. ------=_Part_6351238_1007113115.1436018056061--