header
ask question
Click here to ask Question Now Its free No registration required. Flash, Flex, Flash Media Server, ActionScript,Adobe Air. Most questions receive a response in an hour.
murtuza
Points:0
Posts:0

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.



Dave
Points: 680
Posts:1
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.

FlexMan
Points: 0
Posts:0
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.


Post your Reply
Name  

Email

Type your Reply or Answer

Are you human? What is 7+1 



Members Login

Email  
Password
Forgot Password





This website focus on: Flash | Flex | FMS | RED5 | WOWZA | Flash Media Server | Adobe AIR | ActionScript,Flash Solutions | Flash Question | Flash Answers | Flash Developers | Flash Problem, Flash Help, Flash bugs, Flash workaround | Flash Blog | Flex Question Answers | Flash Forum | Flex Development | Actionscript development | Flash development | Adobe AIR development
Copyright © 2008 AskMeFlash.com. All rights reserved. Privacy Policy | Terms & Conditions