[flexcoders] Re: May I save BitmapAsset instance to database?

2008-11-19 Thread markflex2007
Hi Michael,

Thanks.

Would you please give me an idea how to save Video or Audio data to
database like saving image with ByteArray.

Thanks

Mark
--- In flexcoders@yahoogroups.com, Michael VanDaniker [EMAIL PROTECTED]
wrote:

 Your question is a bit vague, but I'll try and be of some help.
 
 You can use the ImageSnapshot class to get the ByteArray the backs
 your image. Then you can store those bytes in a database and pull them
 up later.  If you're building an AIR application and saving the image
 to a local database you'll want to read up on the SQL utilities
 available to you here:
 
 http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html
 
 If you're building a browser app you can pass the ByteArray to a
 webservices or a remote object that will store the image in a database.
 

http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
 
 If you can be more specific about your problem, we can provide more
help.
 



RE: [flexcoders] Re: May I save BitmapAsset instance to database?

2008-11-19 Thread Jim Hayes
I seem to remember that Peter Elst said something about saving video in air at 
the london flex camp thing(?) a few months back, though I could be wrong.
You might want to check his blog and see if you can find some notes or other 
information.


-Original Message-
From: flexcoders@yahoogroups.com on behalf of markflex2007
Sent: Wed 19/11/2008 21:50
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: May I save BitmapAsset instance to database?
 
Hi Michael,

Thanks.

Would you please give me an idea how to save Video or Audio data to
database like saving image with ByteArray.

Thanks

Mark
--- In flexcoders@yahoogroups.com, Michael VanDaniker [EMAIL PROTECTED]
wrote:

 Your question is a bit vague, but I'll try and be of some help.
 
 You can use the ImageSnapshot class to get the ByteArray the backs
 your image. Then you can store those bytes in a database and pull them
 up later.  If you're building an AIR application and saving the image
 to a local database you'll want to read up on the SQL utilities
 available to you here:
 
 http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html
 
 If you're building a browser app you can pass the ByteArray to a
 webservices or a remote object that will store the image in a database.
 

http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
 
 If you can be more specific about your problem, we can provide more
help.
 



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

[flexcoders] Re: May I save BitmapAsset instance to database?

2008-11-19 Thread Michael VanDaniker
I've never tried to extract and save the contents of an audio or video
file to a database, so I'm not sure what the procedure would be.  When
I had to do something like this in the past I just saved the file to
the server and stored the URL in the database.

Like Jim suggested, Peter Elst's blog may be a good place to look if
you want to go that route.

--- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED]
wrote:

 Hi Michael,
 
 Thanks.
 
 Would you please give me an idea how to save Video or Audio data to
 database like saving image with ByteArray.
 
 Thanks
 
 Mark
 --- In flexcoders@yahoogroups.com, Michael VanDaniker michael@
 wrote:
 
  Your question is a bit vague, but I'll try and be of some help.
  
  You can use the ImageSnapshot class to get the ByteArray the backs
  your image. Then you can store those bytes in a database and pull them
  up later.  If you're building an AIR application and saving the image
  to a local database you'll want to read up on the SQL utilities
  available to you here:
  
  http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html
  
  If you're building a browser app you can pass the ByteArray to a
  webservices or a remote object that will store the image in a
database.
  
 

http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html
  
  If you can be more specific about your problem, we can provide more
 help.





[flexcoders] Re: May I save BitmapAsset instance to database?

2008-11-18 Thread Michael VanDaniker
Your question is a bit vague, but I'll try and be of some help.

You can use the ImageSnapshot class to get the ByteArray the backs
your image. Then you can store those bytes in a database and pull them
up later.  If you're building an AIR application and saving the image
to a local database you'll want to read up on the SQL utilities
available to you here:

http://livedocs.adobe.com/flex/3/langref/localDatabaseSQLSupport.html

If you're building a browser app you can pass the ByteArray to a
webservices or a remote object that will store the image in a database.

http://livedocs.adobe.com/flex/3/html/help.html?content=data_access_4.html

If you can be more specific about your problem, we can provide more help.

--- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED]
wrote:

 Hi,
 
 I create a BitmapAsset instance from image class and I want to save it
 to database and other people can see the image when he read out
 BitmapAsset instance from database.
 
 Do you think if it is possible? and how to save and read from database?
 
 Thanks
 
 Mark