3/11/2010 2:57:52 PM
Title:
flash p2p
how is it possible to transfer a file from one flash player client to another without the use of a server? i do not want to use anything that depends on flash player 10 as not everyone has this upgraded player. is there a way to do this with flash player 9 or later? i understand it may involve other technologies too like javascript or some initial server side work, so im open to that.
3/11/2010 10:02:03 PM
You must use some server side technology to transfer file from flash to another flash client. To achieve this you need to use upload functionality of flash player. The flash player will forward the file stream to some server technology like php or asp which will save the file on the server. To receive this file on the other client side . The other client needs to know the link. This link can either be opened in the new blank window of browser so that the save as window opens or the user can click the link or right clink link to save file.
If you are using Some media server like FMS, WOWZA or RED5 you can always transfer the link info after uploading file to other clients using sharedobjects.
3/11/2010 10:11:53 PM
I must tell you the ways I tried to transfer file using flashplayer 9 or 10 and did not work at all:
1) P2P feature cannot be used to transfer file.
2) FMS sharedobjects cannot be used to save a binary file on the server side. I tried using server side File object. Only text file can be saved in text mode only by providing text.
3)Direct transfer of binary data through sharedobjects by converting binary to some other encoding standard like UTF-8 etc. Does not work.
4) Local shared object to transfer data from one flash to other flash on the same system does not work.
I needed to transfer file for my chat application in flex. Finally I had to go with file upload control and provide link to all users with download link in chat.
Lets see if in future Adobe will do something , its a very much requred feature.