Skip to main content
July 2, 2012
Question

How to create file and write file (over byte)

  • July 2, 2012
  • 2 replies
  • 988 views

Hi,

I read this tutorial about streaming video-on-deman over p2p network. It load video file through URL, and split file to chunks, save in RAM. If file has big size, it may be crash...

I want store data file (load from URL) in hard disk. And my player can play file from harddisk, not RAM.

First, I start load video file over URL, I can get size of this file (example 18MB), and create a video file 18MB size. Then, my created file is ingested by bytes load from URL.

It similary Torrent.

Is this possible ?

This topic has been closed for replies.

2 replies

July 7, 2012

Sumit, that's not true actally, since player 10 you can use FileReference to save files to the local system. However that wouldn't be enough for this. The FileStream object in AIR can write bytes directly to disk, so I think this should be doable.

July 7, 2012

to save file in hard disk, u have to use Mprojector like tool,that is swf2exe tool.