Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

FileReference and URLRequest

$
0
0
Hi,

I am trying to implement import CSV data into Flex Web app using CSVLIB, so
it allows me to parse commas inside cells when it is surrounded by double
quotes.
It seems that the only way to load data in CSV is: csv.load(new
URLRequest(url:String)).
So if I select some file from my local drive, say file1.csv from c:/temp,
how can I put it in URL.
File reference returns only selected filename without the path when I use
fr.browse(). fr.name()
And fr.browseForDirectory() is AIR only.
So how can I get a full path+fileName to pass to URLRequest?

Please help!

TIA,
Oleg
P.S.: no ByteArray used in CSVLib.
Using Flex 4.5.1

Viewing all articles
Browse latest Browse all 5648

Trending Articles