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.
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
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.
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.
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