header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
rani
Points:0
Posts:0

6/24/2010 12:28:17 AM

Title: read a file


Is it possible to read a text file and show the contents of file in a textbox of a webpage developed in adobe flex webapplication?
I can read a text file in desktop application but it is not reading in webapplication.
help please.



1
Bryce
Points: 0
Posts:0
6/24/2010 1:54:29 AM



in web application of flex /flash you can only upload the file to server , there is no way to read the contents

2
Brad
Points: 750
Posts:0
6/24/2010 2:02:22 AM



for a web application in flex you should upload the file to server and read it there and pass the contents back to flash file . Directly accessing files is not permitted in flash or flex files.

3
rani
Points: 0
Posts:0
6/24/2010 9:11:51 AM



hi Brad
how to upload and read the file on server and pass the content to flash file.help me.

4
Brad
Points: 750
Posts:0
6/24/2010 9:49:37 AM



in flex you just need to upload the file to some server page . Say uploaded 123.txt to uploadFiles.aspx, when your upload is complete, then you need to ping another page with file name as querystring, This page will read the uploaded text file and return you the text contents. which you can display

The reading service can be readText.aspx?fileName=123.txt

you should consult your developers for the above functionality. Its quite easy for a developer


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 4+3 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions