ActionScript 3.0 :: Take Picture And Save In BlobField In Database
Jan 19, 2012
I am making an application where the user needs to register himself. During the registration he needs to take a picture with the phones camera. All of this workds great. But if he completes the registration, the image taken by the users needs to be saved in the database(BLOB field). I searched a long time and the id behind it was to get the bitmapdata, get a bytestream and then encode with b64 to send it to the php service. So here is what I've done now:
ActionScript Code:
var bitmapdata:BitmapData=this.data as BitmapData;
var encoder:JPEGEncoder=new JPEGEncoder(85);
var stream:ByteArray=encoder.encode(bitmapdata);
var b64:Base64Encoder=new Base64Encoder();
[Code].....
But he won't insert it. I think it's something with the encoding but I don't find where the problem is exactly.
View 6 Replies
Similar Posts:
Jun 17, 2010
I am working on a function to generate a form at runtime in Flex based on a call to the DB. The call to the DB returns the field types, id, tooltips etc as an arraycollection, the arraycollection is then parsed in order to ascertain what control to display based on the type field in the array - this bit works fine.However, i am stuck on trying to save the form fields back to the database using a CFC.my form rendering code is as follows but how do i save values entered back to the database? rendering code..
[Bindable]
public var getglobalprofileb:ArrayCollection;
public function init(event:ResultEvent):void {[code].......
View 1 Replies
Feb 12, 2010
I need to take a picture with a web cam and save it in the server.
View 2 Replies
May 10, 2010
I'm totally new to AS3 and I have an upcoming project on it. It's a virtual hairstyling project but I have no idea how to get the first part to work.This is how the first part of the project goes:First, it will ask the user to take 3 pictures of themselves using the webcam (probably some buttons that says "take picture"). These 3 pictures should be saved temporarily in the flash.After all pictures are taken, it will ask user to choose one that they like the best and will proceed with the next step. And if they don't like any of it, they can take the pictures again.
View 3 Replies
Oct 5, 2011
I am willing to make a customize avatar for a registered user where the accessories will be save in a database. The item will be pulled from database to flas and after the user finished creating his avatar this will be save in the database. I mean my avatar application will be as like as farmville avatar customizetion using flash,php and mysql. I am fadeing up to find this solution.
View 2 Replies
Mar 14, 2009
how can I save a picture from swf file without any server (php,asp,etc..) IS it so , with jpegencoder class and as3 and flashplayer 10
View 2 Replies
Nov 11, 2010
I need a very simple(*) image editor made in Flash so the users of my web page can edit pictures and then save them to my server. I'm beginning this project trying to save to a jpg or png the content of a movie clip, but I didn't find any information on Google. Can you give suggestions of how to begin? And if you know some opensource projects like this one, please share it here.
(*) very simple means, resize, crop, add text and overlap other images.
View 4 Replies
Mar 3, 2010
To save the flash device as a picture in my mind to give me science is Bruser so save it in any place
View 0 Replies
Jul 25, 2010
My subject sums up the question. I want parents to be able to write their name and then save it to a database. I also want it to appear in an admin panel to make sure it isn't just scribble. I am trying to use flash to comply with the COPPA Childrens Online Privacy Protection Act.
View 5 Replies
Feb 9, 2009
capture video and save to database,, i am trying to build an online aplication in flash to capture video (from the users camera ) and pass it to mysql or a folder in site root.
View 3 Replies
Dec 8, 2009
I have a complex custom class which contains custom subclasses and so on. I want to save the state of an instance of this class to a database.Currently I'm using a ByteArray.writeObject which seems to work well as I am using registerClassAlias, so all custom classes are being picked up and serialised correctly.writeObject uses the AMF standard to "flatten" classes, but is AMF the best way to go to store the entire state of a class into a database?
View 9 Replies
Jul 19, 2010
uploading a byte array to my database.
this is my codes.
Code:
var ba:ByteArray = PNGEncoder.encode(bmd);
var _request:URLRequest = new URLRequest ("http://localhost/image/readimage.php");
[Code]....
i am able to upload some data, but its not the image of data. is more like some junk data.
View 8 Replies
Oct 19, 2009
I need to build a flash application In which I load a jpg, make a selection of it (a mask or something like crop tool) and save it back. Loading the picture and making the mask are not a problem. saving the edited picture back.
View 6 Replies
Jun 22, 2009
I have made a newsletter for a website in Adobe Flash CS4. What I need is what to save the file format as so that it will not come up as a "picture" on the email. Also how would I make in a single area if you click on it, it will directly send you to the website?
View 1 Replies
Oct 27, 2009
My application is almost set, load the image, made the crop, save It to a server with a php and all good until here. Now I want to drag the image, make a scale of it and for that I used an Matrix (also done).
My problem is if I scale it less then initial value, my crop is not good. Can you please take a look at my code here, because its drives me crazy and I cant figure it out.
View 0 Replies
Sep 14, 2010
i am trying to layover a background picture (bitmap) a masked area of a captured (blurry circle) webcam and add some small bitmap graphics (little squares with text) to itactualy not that hard but i want save the whole thing as jpegso on the screen everything looks fine and i managed to save a jpeg with a masked capturevideo but without the background image included ;-(so can anybody tell me how to include the background image ?here is the code so farit generates a gradient mask for the captured video
ActionScript Code:
package
{
[code].....
View 0 Replies
Jul 21, 2009
im new to this forum and kinda new to flash and php together...i have this project that would load a swf movie on a drawing board and user could draw something over then swf movie. It should be able to save the drawings to the database, so that the user could just load it for later use. for example if the user draws a zigzag line at frame 5 of swf movie and on frame 10 of the swf movie deletes the zigzag line and draw a circle and then saves it. then loads it later, from frame 1 to 4 of the swf movie the zigzag line should not show but on frame 5 to frame 9 it would show and on frame 10 shows only the circle. or just on the specific frame number of the swf movie it will show. like when user draw on frame 6 then on before or after frame 6 it wont show..the second one might be a bit easier to implement.
how do i save the user drawings over the swf movie? and how do i load it? do i have to save everthing (like x and y coordinates, movieclip names) in a textfile? and use that textfile to recreate the swf file drawn? what ways could i implemnt this? hopefully someone to could point me in the right direction.
View 0 Replies
Oct 12, 2009
I'm not an expert in actionscript but I know a thing or two, but basically I've been given a task in a new web-based piece of software whereby users can drag and drop objects onto a background bitmap. The amount of objects and the co-ordinates of each object will then need to be saved for each user, so when they log back in (regardless of what machine they are using, they'll see where they have left off.)I've seen mentions of using the shared object, but this won't do as the user will not always be using the same machine.
View 1 Replies
Apr 4, 2010
Does anyone know how to get a script of some kind to grab a picture from a live stream and save it as a JPG file?
In this way a cron job can tricker the script and thereby grab a picture fx every 10'th minute and the picture can be shown on a website so people that are not attending can have a look into what is happening in the live stream.
View 5 Replies
Jan 25, 2011
How to save images a landscape picture and portrait size in FP10, there are ways?
View 13 Replies
Jul 21, 2011
I want to add the ability to have my flash game record the users progress then save to a database. That part is pretty easy, but how can I make it so the user can login and continue their game. I also wanting to know if it'll be better for the game progress to be saved with SharedObjects or with an SQL database. I would like it that the game could be played on any website and their data can still be accessed and played if that is advised. I am new to user sessions with AS3 and need pointers.
View 1 Replies
Jun 24, 2010
I m trying a make a database on sqlite using actionscript3 and flex.I can browse through file and select a file using browseForOpen().I can get the url by Filename.url and storing it into a string type variable fileUrl:String.I m creating table like:
CREATE TABLE IF NOT EXISTS test_table (id INTEGER PRIMARY KEY AUTOINCREMENT,user_name TEXT,password TEXT ,fileurl TEXT)
i made a text input form for entering user_name and password like:
<mx:TextInput x="50" y="10" width="117" id="user_name"/>
<mx:TextInput x="50" y="10" width="117" id="password"/>
Now i want to insert values into the table like:
sqls.text = "INSERT INTO testt_table (user_name, password,fileurl) VALUES('"+user_name.text+"','"+password.text+"',fi leUrl);";
but its giving errors.How can I enter the url or path of the file chosen into the table.
View 0 Replies
Sep 20, 2011
[URL] I got partial success with the tutorial above, but couldn't figure out a few things.
1) How to save the date and time to the database? Based on web search result on how to find date or time in APS, I thought I could do
[Code]...
but the ASP generated errors on the 2 lines.
2) When executing the file (getURL("http://yourSite.com/processForm.asp",0,"post");
}), it always opens the processForm.asp file in a new window. Can it be executed in the same window or just being hidden?
The tutorial is old, and I wonder if there are new ways to do the things with CS4 or CS5?
View 1 Replies
Jan 2, 2012
I'm having some trouble getting around a security restriction of flex. Saving a file is apparently an action that can only be invoked upon user interaction. The problem is that after my user clicks on the save button, I need to perform a database query to get the data for the file I want to save.
Because Flex works asynchronous, I have to make the database call and then catch the ResultEvent in a different function. In that function, I no longer have the user's mouseclick event. How am I then supposed to save this file?
[Code]...
View 1 Replies
Apr 22, 2002
I want to make a picture gallery and use buttons that move you from picture to picture and backwards, but I don't want to tell button 1 to go to frame 2 and button 2 to got to frame 3 and so on (I hope you know what I mean)Can I use on button on a separate layer with the same action set? I tried something like that, but it didn't work:
on (release) {
thisframe =+1
}
[code]........
but it didn't work. I'm kind of new to any action script other than gotAndPlay, easy functions and all that.
View 2 Replies
Mar 22, 2003
I recently used the loadMovie action to load a .swf file to a target in the movie which it was being called from. Then I tried calling a picture to another target in the movie, but it did not load the picture as intended. I read about it on my book, but it didn't seem to work. Is there anyways on calling a picture into a target in the movie without placing the picture inside an swf file?
View 7 Replies
Jan 5, 2005
I have just been to a really nice website that has some really nice use of Flash on it.... I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.
View 3 Replies
May 12, 2010
I am trying to build a site that would give users the ability to upload a picture to a picture frame on my site. I would like AS3 to dynamically re-size, and upload the file from an upload bar under the frame.
View 1 Replies
Jan 5, 2005
I'm totally wowed by the resizing picture effect though? When each picture loads the loading frame resizes to the new picture size.It must be some sort of actionscripting but how is it done?
View 3 Replies
Oct 2, 2011
I how that any Can help I have a Picture that I want To destroy it As someone break it as a glass and then something made it go back as she was
View 1 Replies