# Read a file while downloading(stream like)

**URL:** <https://forum.kirupa.com/t/read-a-file-while-downloading-stream-like/257314>\
**Category:** flash\
**Created:** [April 12, 2008, 3:46pm UTC](https://forum.kirupa.com/t/read-a-file-while-downloading-stream-like/257314 "2008-04-12T15:46:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ariel\_ro](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@ariel\_ro](https://forum.kirupa.com/u/ariel_ro)\
**Post date:** [April 12, 2008, 3:46pm UTC](https://forum.kirupa.com/t/read-a-file-while-downloading-stream-like/257314/1 "2008-04-12T15:46:05Z")

</div>

Hello all!  
I have to create an application in AS 3.0 and MXML(Flex) where users have to upload XML files to a web-server and the information from that XML be placed in a database table(MySQL). The problem is that the XML files are quite large and the actual download+SAX parsing could take a while.  
My question is: Can I read the content of the XML WHILE downloading it? Is there something like FileStream available in Flex/ActionScript 3.0?

Any help is apreciated 🙂

Regards,  
Ariel
