[flexcoders] FileByteArray

2006-10-05 Thread Neves
Hi,

I know that the access to local files are made using the file browse
for security reasons.
But as soon the user has selected the file and confirmed, I think flash
player could have access to the byteArray of the file. I don´t think
it would be a security risk, since it´s access are readonly and the
user has authorized. The same goes for download. You could open a save
dialog ask for the user save a data that was generated by the
application on the client.

The possibilities would be amazing. Here goes some examples:
1 - The user could browse to a csv file and instantly import to a grid,
with no need to send to serverside.

2 - User would save app configuration on his machine and load again
later.

3 - User could open some images and instantly display the thumbs.

4 - Usually the uploaded images are big, cause the user shot then using
high resolutions. Flash could compact this image or even resize and
encode in png/jpg before send to the server.

5 - The upload file could be compressed before send to the server. A
xml usually became 10 times smaller after compression.

Would be nice too, upload a byteArray to the server, cause today, you
can upload only files selected by the user.

Someone from Adobe here?



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] FileByteArray

2006-10-05 Thread Rogerio Gonzalez



I totaly agree with you, but until now, I could not accomplish that.I have an test with FTP by Socket where the intencion is receive one image form the user by fileReference, capture the BiteArray, redimension the image (like PHP do) and then upload to a FTP server by socket.
All stages are funcional, less the bitearray of filereference.Equal that, I have an test for Base64 encripting where user can chose an local image an receive and Base64 string for that image. The same problem... can´t capture that. The only way I fond (that doesn´t work too) is create an mx:image with source 
file:///c:/image.jpg but then I get an Sandbox error when I trie to get the BityArray of mx:image.In stand buy for news about it :)Rogerio
On 10/5/06, Neves [EMAIL PROTECTED] wrote:













  



Hi,

I know that the access to local files are made using the file browse
for security reasons.
But as soon the user has selected the file and confirmed, I think flash
player could have access to the byteArray of the file. I don´t think
it would be a security risk, since it´s access are readonly and the
user has authorized. The same goes for download. You could open a save
dialog ask for the user save a data that was generated by the
application on the client.

The possibilities would be amazing. Here goes some examples:
1 - The user could browse to a csv file and instantly import to a grid,
with no need to send to serverside.

2 - User would save app configuration on his machine and load again
later.

3 - User could open some images and instantly display the thumbs.

4 - Usually the uploaded images are big, cause the user shot then using
high resolutions. Flash could compact this image or even resize and
encode in png/jpg before send to the server.

5 - The upload file could be compressed before send to the server. A
xml usually became 10 times smaller after compression.

Would be nice too, upload a byteArray to the server, cause today, you
can upload only files selected by the user.

Someone from Adobe here?


  















__._,_.___





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com








   






  
  
SPONSORED LINKS
  
  
  

Software development tool
  
  
Software development
  
  
Software development services
  
  


Home design software
  
  
Software development company
  

   
  






  
  Your email settings: Individual Email|Traditional 
  Change settings via the Web (Yahoo! ID required) 
  Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured 
   
Visit Your Group 
   |
  
Yahoo! Groups Terms of Use
   |
  
   Unsubscribe 
   
 

  




__,_._,___



Re: [flexcoders] FileByteArray

2006-10-05 Thread Muzak
http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

- Original Message - 
From: Neves [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Thursday, October 05, 2006 2:57 PM
Subject: [flexcoders] FileByteArray


Hi,

I know that the access to local files are made using the file browse
for security reasons.
But as soon the user has selected the file and confirmed, I think flash
player could have access to the byteArray of the file. I don´t think
it would be a security risk, since it´s access are readonly and the
user has authorized. The same goes for download. You could open a save
dialog ask for the user save a data that was generated by the
application on the client.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/