Flex - Saving Images From Flash To Server Using PHP

Sep 29, 2010

I am trying to save some images from Flash to Php by sending a jpgstream, capturing it in php and pushing it to a file. Not sure what I am doing wrong here.

I am putting all the images I need into an array like so: (history is just where I am keeping all the image data)

[Code]...

But this doesn't seem to do the trick. I have been going through a bunch of different tutes and code snippets, so maybe I just ogt something confused along the way. I have done this before though and don't remember it being this difficult.

View 2 Replies


Similar Posts:


Flash :: Saving Large Images Created In Flex?

Nov 25, 2009

I am attempting to capture a very large image that was made dynamically within the Flash Player (the size of the image is 2400px by 12,000px) and am running into some very serious issues... Let me run down how the image get's to that size in the first place:

User adds elements to a canvas and then when the user is finished the canvas scales up to 2400px wide and ~12,000px tall. The problem arises when I attempt to save the image to the hard drive. Now, I dont know if this will affect the recommended fix, but the rendered image wont be saved on the hard drive, it will be sent to a server. I know about the ~4050px limit in Flash Player and was thinking I could get around that by clipping the images with the ImageSnapshot.captureBitmapData() method and keeping the required Rectangle variable below 4000px then repeat that down the large image until it reaches the end where the final images will be pieced together at a later time. However... As i mentioned the error comes when it reaches the 'fileReference.save(pngImage);' method..

View 1 Replies

Php :: Flex In Saving PDF At Server?

Jul 8, 2009

I am a new bee to flex. what i am trying to do is to generate and save the layout design which nothing but canvas to a pdf format at the server. Currently i am able to display the pdf in browser (see the function below:) but cannot save the file at the server.

private function continueToPdf():void{
myPDF = new PDF( Orientation.LANDSCAPE, Unit.MM, Size.A4 );
myPDF.setDisplayMode ( Display.FULL_WIDTH );
myPDF.addPage();

[Code]...

View 2 Replies

Flex :: Downloading A File From A Server And Saving It In A Specific Location Without User Intraction

Jun 23, 2010

I want to download a file from the server and save it in a particular location of the disk without user interaction. All this I want to do it in Flex.

View 1 Replies

ActionScript 1/2 :: Saving Images From A Flash Website?

Aug 20, 2010

I need the user to be able to SAVE images which is in the image gallery of my flash website?
 
Is it possible to make the SaveAs box pop when clicked on each image?

View 3 Replies

Actionscript 3 :: Saving Image From Flash On Server Under Different Name

Mar 25, 2011

I followed this question:flash Actionscript 3 and php image upload.I copied the code:[code]It works great, I just need to know how to save the image under a specific name, how do I pass an argument to the php script? or is that not necessary, can I change it before calling the script?How would I then call URLrequest to show user the file he uploaded ?

View 1 Replies

Flash :: Apache - Page Is Throwing A 406 Not Acceptable Status Code And Is Not Saving The Images?

Feb 18, 2010

I'm debugging a flash website that do a request to an php file named upload.php to upload some images to the server.The problem i'm having that debugging it with Firebug the request to that page is throwing a 406 Not Acceptable status code and is not saving the images.

Post Data: This website runs well on the staging server but in production server this process of the image upload fails. I only can assume that a change to apache configuration / php must be done.

View 4 Replies

Php :: MySQL Or XML: Saving User Votes On Server From A Flash Movie?

Nov 21, 2009

A project of mine involves a flash movie (.swf) in a webpage, where the user has to pick from a number of items, and has the option to thumbs up or thumbs down (vote on) each item.So far I have gotten this to work during each run of the application, as it is currently loading the data from an XML file - and the data is still static at the moment.I need to persist these votes on the server using a database (mySQL), such that when the page is reloaded, the votes aren't forgotten.Has anyone done this sort of thing before?The two mains methods that I have found on the 'net areeither direct communication between AS3 and the SQL using some sort of framework, orpassing the SQL query to a PHP file, which then executes the SQL query and returns the SQL to AS3.

Which of these methods is the better option?For the latter method (involving PHP), I have been able to find resources on how to acheive this when attempting to retrieve information from the database (i.e. a read operation), but not when attempting to send information to the database (i.e. a write operation, which is needed when the users vote). How is this done?Edit: Implemented solutionSomewhere in the PHP file:

if ($action == "vote")
{
$id = $_POST['id'];

[code]....

View 2 Replies

Saving Images From Library (to PC)?

Jun 1, 2009

I have 60 images in a library within a .fla file that I want to save to my PC. (I lost the originals). Flash won't let me drag-and-drop them or anything remotely sensible like that.Suggestions posted around t'Internet talk about putting each one on the stage and going through "file-export". Besides from being very tedious, this might not be so great - the images constitute an animation and need to be precisely aligned.Incidentally, the library does have a movieclip of 60 frames - each containing a single image.If all else fails, is there some tool which will extract these images out of the compiled swf?

View 1 Replies

ActionScript 3.0 :: Saving Images From SWF?

Jul 24, 2011

Yo, just trying to figure out how to save an image from a SWF.(Yes, I've already used the search function here)I've made kinda like a slideshow thing and next to the images, there is a "Save" button. When you click the save button, it will get the image from the SWF and save it to the user's hard drive (or if easier, it will download it from an URL).

View 2 Replies

Actionscript 3 :: Upload Images From Flex Web Application To Server

Sep 8, 2011

My situation is that I have to convert an HTML form into a Flex WebApplication. A Java Servlet runs on the server that will use the data and interact with the database.

I have a couple Text fields and 2 images that need to be uploaded. The two images are browsed with 2 FileReference objects. I understand that I need to create a POST request on a HTTPRequest object, but how will I pass the image data as well?

View 1 Replies

ActionScript 3.0 :: Flex Upload Images Without Server - FP10?

Mar 25, 2011

i have code:

Code:
private function load_image(evt:MouseEvent):void {
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, onLoaderComplete)
loader.load(new URLRequest("images.jpg"));
}

[code]...

working good, if i use only one images, but i need load images with local machine and display in flash, how can modify my code?

View 1 Replies

ActionScript 1/2 :: Saving Images To Local Machine?

Jul 2, 2009

Is it possible to save  images in to local machine while loading images in a flash component from a server. I think it's possible to save images in to local machine using actionscript3. I want to know whether its possible by actionscript2. While searching i got some tutorials regarding this but its using actionscript3.

View 2 Replies

Flex :: Images And Listeners Not Working On J2EE Server Settings?

Feb 25, 2011

I have been programming using flex 4 on adobe flesh builder 4 in order to create a website. The site require a connection to java and hence I decided on using blazeDS, in order to do so I updated the flex project's properties and set the flex server from "noneother" to "j2ee" as is required for the use of blazeDs. Ever since this change the site no longer runs as it should, as all the images are not being displayed and all action listeners are no longer working.(The problem is due to the flex server as when I changed it back to none the site worked fine)I need the j2ee server, and cant go by without it.

View 1 Replies

ActionScript 3.0 :: Saving XML To The Server?

Dec 21, 2009

Im trying to save an xml file in the server, Im using the code of AS3 book. and here is the code as3 and php ,that suppositly save an xml file on the serve. but it dont work. i set te permition of the folder to 777  to allow writting. well i look at evrything and dont find the probleme at the error message it give :An error occurred when attempting to load the XML.Error #2032 (but it come from the book, it should work)?

[Code]....

View 6 Replies

ActionScript 3.0 :: Saving Xml To Server

Nov 30, 2009

I have created an xml driven application with which the client is very happy. They currently use notepad/dw to create the xml files. They now want a "form" of some description to create the xml file to avoid writing tags and so on. I have had a good look around. There is some info about creating the xml itself in as3 (looks pretty easy), but very little about how to save that file to the clients server. I gather that the flash doesn't do this for security reasons?

My question is really this: would i be better using php to create the form for my user rather than flash as3. Or is it better to create in as3 and then append a little php to upload the doc? Or am I going abouit this the wrong way!

View 2 Replies

Professional :: Saving Data To Server Via SWF?

Jul 26, 2010

I have in mind a very basic swf file that allows someone to enter data (via dynamic text box), submit this data (via php), which in turns saves it as a file on the Server. This file (.txt) would be used to populate text on the main site. Most of this seems quite straight forward, and standard practice, apart from actually saving the data as a particular file and on the server (or overriding an existing file), which I'm sure comes up against problems such as FTP access and everything else, but I was wondering if someone might have an insight on how this could be done?

View 3 Replies

ActionScript 3.0 :: Saving BitmapData To Server As JPG

Jun 29, 2010

I'm trying to write a contest where the user can paint an outlined image I provide, and then submit it. I want it to then save the image on my server with properties so I can tell who submitted it. They will be asked to input these values of course. I looked into the JPGEncoder but could only find examples for downloading the image directly. Is there an easier way to do a contest like this? I'd rather not have them have to save the image locally and then e-mail it, as this is geared towards kids and I don't want it to be confusing.

View 2 Replies

ActionScript 3.0 :: Saving Bytearray To Server As A Zip

Oct 22, 2009

I trying to save an byteArray to the server as an zip using nochump AS3 Zip Library (URL..). I'll belive I'm quite near with the as stuff, but can't figure out how the php handles the byteArray.[code]

View 1 Replies

Actionscript 3 :: Saving Several Images (and Metadata For Each) In A Single File Using Adobe Air

Jul 14, 2010

Is it possible, via Adobe Air, to save multiple types of data in a single file? For example, an application would allow the user to load in external images, position them on stage and label them. This data would be then be stored in a ByteArray (I guess) using BitmapData for the images and probably XML for the metadata.

I would then like to write this to a single file, with a bespoke file extension that could be associated with said Air app.

View 1 Replies

ActionScript 3.0 :: Saving Masked Image To Server?

Apr 6, 2009

change the following php/AS3 to make it save the dynamically created masked image to the server instead of offering it for download? You have to pass it variables from the as3 AT THE BOTTOM OF THIS POST...

PHP -
<?php
if(isset($_FILES['Filedata'])) { // basically if file data exists to actually upload.

[Code]......

View 9 Replies

ActionScript 3.0 :: Saving Dynamically Changed Swf Over A Server?

May 22, 2010

Say I have a webpage where a user enters their name and it is displayed to them on a swf. If I have a save button, how could they save their dynamically changed swf to their computer, with their name on it?

Bare in mind that if a normal save is completed, they will only be saving the swf on my server. Somehow, something needs to happen to get them to save the swf with thei name on it, as saving a dynamic swf is not possible in as3 (I dont think)

View 3 Replies

ActionScript 1/2 :: Saving Image To Server From Stand Alone SWF Using PHP?

Jan 12, 2010

I built an information terminal for the shop of a friend of mine which uns as fullscreen application.On this terminal the swf file is running as a stand alone file by unsing the flash player directly.I want to save a snapshot (jpg) from a webcam if someboy presses a button.This does work as long as I run my application (swf) by using the browser (Firefox , Apache and localhost).But if I try to use it as it should be used no image is beeing created.
 
There was an error when first testing the application which forwarded me to an Adobe site where I had the possibility to grant files permissions, which I did for the file (the SWF) that needed it.Did I do something wrong, or is there some permission thet I have to grant before it works as it should be?

View 1 Replies

Php :: Saving Bitmapdata To Server And Getting Filename Back?

Jun 16, 2011

Here's what I am trying to accomplish. I have a BitmapData that I am sending to a PHP function as ByteArray on the server by using URLRequest. The PHP function then saves the ByteArray as a jpg. All is well, so far and I am able to save the image on the server. Where I am stuck is that the PHP function generates the image file name randomly and I have no clue on how to get the name of the file I have just saved on the server. I am using the below code to send byteArray to the PHP function. How to modify/add this so I can get the filename of the image once it's saved on the server?

var myHeader:URLRequestHeader = new URLRequestHeader("Content-type","application/octet-stream");
var myReqst:URLRequest = new URLRequest(path);

[Code]....

View 1 Replies

ActionScript 3.0 :: PNGEncoder - Saving Image Onto Server

Dec 23, 2010

I am struggling to encode and then save a png image onto the server. The file 'myImage.png' gets saved onto the server but it is 0kb.

My actionscript is:
import com.adobe.images.PNGEncoder;
import flash.display.BitmapData;
import flash.utils.ByteArray;
// Go to PHP Page.//
bitmap_btn.addEventListener(MouseEvent.CLICK, gotoPHP);
function gotoPHP(event:Event):void {
[Code] .....

View 2 Replies

ActionScript 2.0 :: Saving Swf Contents As Image To Server?

Nov 25, 2003

way to have a specific portion of the stage save as a .jpg to the server.

So, if a user were to draw something, and click a "save" button, they would be able to save their drawing to the server as a jpg.

View 2 Replies

ActionScript 3.0 :: Saving Game Data To The Server?

Jul 22, 2009

I am working on an educational game that requires the user to enter their username and password in order to retrieve their saved game data. I know how to do this locally using the sharedObject class but I do not really understand how to do this remotely on the server. I thought maybe using remote shared objects would work but it looks to me like that only works with a flash server and data can be changed by anyone.

View 3 Replies

Media Server :: Saving Stream In Custm Path?

Nov 4, 2010

I developed a video recording application using Flash with Red5 .
 
It records the stream and saves atha in webapps folder. But i want to save that in custom directry?
 
Is it possible to mention the path inside the flash code? I tried out this code ... but it throws error saying bad name....
 
ns.publish(videoName,"http://mysite/video/record");
  
steps to change recording path of the streams.

View 1 Replies

PHP :: Upload Photo To Facebook Album Without Saving On Server?

Mar 12, 2010

I'm using CURL to upload files to a service. Currently I'm getting the file content with $GLOBALS["HTTP_RAW_POST_DATA"] then save it on my server. After that, I'm using CURLOPT_POSTFIELDS with the file's full path. Is there a way to send the file content directly, without saving it on my server, as if I saved it? Or is there a way to upload a Photo from a flash app to facebook album, without saving it on the server?

View 1 Replies

ActionScript 2.0 :: Saving A Screenshot Of SWF Without Any Server Side Functionalities?

Nov 2, 2009

how I can save a screenshot of a SWF. All the examples I found requires some form of PHP scripts and some action on the server side.I am doing a simple program where at the end, the players will be awarded a certificate and they have to be able to save it on their desktop. This program is to be run on a cd-rom or off a local hard disk, thus it must not involve any server side actions.

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved