Flex :: FileReference And HttpService Browse Image Modify It Then Upload It?

Sep 23, 2009

I am trying to do an image uploader, user can:

- browse local file with button.browse

- select one and save it as a FileReference.

- then we do FileReference.load() then bind the data to our image control.

- after we make a rotation on it and change the data of image.

- and to finish we upload it to a server.

To change the data of image i get the matrix of the displayed image and transform it then i re-use the new matrix and bind it to my old image:

private function TurnImage():void
{
//Turn it[code]...........

Now the mater is that i really don't know how to send the data as a file to my server cause its not stored in the FileReference and data inside FileReference is readOnly so we can't change it or create a new, so i can't use .upload();.Then i tried HttpService.send but i can't figure out how you send a file and not a mxml.

View 1 Replies


Similar Posts:


ActionScript 2.0 :: FileReference.browse() - Restrict Image Files Only [OS X]?

Nov 13, 2009

Adobe documentation says this should work:

ActionScript Code:
var fileRef = new FileReference();
fileRef.browse([{description: "Image files", extension: "*.jpg;*.gif;*.png", macType:

[code].....

View 2 Replies

Flex :: Air - Specify The Location For FileReference.browse()?

Mar 30, 2011

I have a requirement to select a file from fileReference.browse(), but I want to browse a file to specific location say D:Dirfile instead of the OS specific (The dialog box is native to the user's operating system).

View 2 Replies

Actionscript 3 ::Flex : Center Pop-up From FileReference Browse?

Mar 5, 2012

I want to screen center the file chooser wich appears when FileReference.browse() method is called.

View 2 Replies

Flex :: Use The FileReference.upload() Function To Upload Files To Sharepoint Or Have To Use The SP Web Services

Feb 5, 2010

Can you use the FileReference.upload() function to upload files to Sharepoint or do I have to use the SP web services? This is without adding your own ASP.NET Web Services, just using the built in SP Web Services.

View 1 Replies

Flash :: Flex FileReference.browse() Stops Playback On Some Players

May 31, 2010

We have an issue were the server session associated with a Flex client times out when the browse file dialog is open for a time longer then the configured session timeout. It seems that on some players, the playback is stopped when browse or download on a FileReference is executing. This also causes remote calls to be blocked and hence our manual keep-alive messages are not sent to the server, resulting in a session timeout. I searched for some info on this in the docs and found a notice of it, but it does not explicitly list the players it does (not) work. Would anyone know were I could find a complete list?

[Code]...

View 1 Replies

ActionScript 3.0 :: FileReference - Resize Image During Upload?

Jan 23, 2011

I would like to automatically resize an image uploaded through fileReference if the image is larger than the movieclip. The movieclip is 500x400 pixels.Here is my code.

The movieclip where the image will load is called "upload_area"

Code:
var fileRef:FileReference= new FileReference();
btn_upload.addEventListener(MouseEvent.MOUSE_DOWN, onDown);
function onDown(evt:MouseEvent):void{

[code]....

View 3 Replies

Actionscript :: FileReference Upload OnComplete - Image - Store It In A Directory

Jul 11, 2011

I am a complete beginner in Flash & Actionscript. My pet project is this: To provide a [URL] like service where people could upload single images and later anyone can view it using the generated url. So far I have gotten to upload an image using Flash and store it in a directory.

[Code]....

View 2 Replies

ActionScript 2.0 :: Image Upload With Browse Button And Submit Button?

Jun 3, 2010

I am trying to have my image uploader have a browse button and submit button (because the submit button will be sending information from a few text fields as well and they need to be sent at the same time).

I've been fiddling around with it and I can't seem to figure it out.. I tried just having the browse function on a separate button but im failing miserably..

Code:
System.security.allowDomain("http://dev3.webcanada.com/clients/starwood/GB-Historybook/pages/write.php");
import flash.net.FileReference;
// The listener object listens for FileReference events.

[Code]......

View 0 Replies

Java :: Upload In Flex Without FileReference?

Apr 6, 2011

Is there anyway of upload a file in flex 3.5 without using fileReference? Or even with fileReference, but without browsing, for example, I'm trying to take a printscreen and send it to my java web server

View 2 Replies

ActionScript 3.0 :: FileReference.load() -> Loader.loadBytes() - Allow A User To Upload An Image From Their Machine To Be Displayed On A Website?

Jan 22, 2011

The purpose of this is too allow a user to upload an image from their machine to be displayed on a website. The code's pretty straight forward and i have it all working fine, but have come across an issue. When certain portrait images are selected to be loaded and displayed, they get rotated at some point in the process and become landscape? There doesn't appear to be any consistency to the way they are rotated. Some are clockwise, some counter clockwise.

The one thing i've noticed though, is that it doesn't appear to be an issue with images that have been re-saved (so simply taken into photoshop and then saved without any modification), only images that are the original source of an image taken by a digital camera? This has got me wondering whether there's a possible issue with flash reading the meta data of the source image? The attached zip file contains the source code and swf, a selection of images from 2 different camera's and a modified image.

Just to note, due to the dimensions of the images, in the source code the bitmap is scaled to 0.1 so that the result can be clearly seen. I've tested this without the scaling and the image still gets rotated. There's a trace in the Event.COMPLETE handler of the Loader.loadbytes() method and you can see from this that the width and height of the loaded image have been switched? Note - due to the size of the zip file (4.6MB) because of the images, i've put them up on my server for download instead.[URL]

View 5 Replies

Flex :: Adobe Air Upload Progress Without FileReference?

Apr 5, 2010

I'm deploying a small application with Adobe Air. My application will do batch upload from filepath which stored in a text file. For example, in a text file name "list.txt", there is a string "C:myfilesIMG_0001.JPG". Now I want to upload this image file, keep tracking of upload progress :-< I want to use FileReference to get the upload progress, but I don't know how to import from file's path. I also wonder how to use FileReference to upload this file without prompting a dialog for user to select file.

View 1 Replies

Actionscript 3 :: Upload Images In Flex 4 With Filereference?

Mar 28, 2011

I'm trying to upload images in Flex 4 and haven't got so much success with it yet. My code:

[Code]...

This worked well when I took the Webservice approach and stored the Image (= bytearray) in SqlServer.

View 1 Replies

Flex :: File Upload - 4 FileReference With Firefox

May 11, 2011

I'm trying to perform a file upload using a FileReference from a Flex app running in Firefox 4. However when I attempt to call the upload() method, the Filereference throws an IOError with the following Error #2038: File I/O Error. URL: [URL] If I don't explicitly add a listener for the IOErrorEvent, then I get a Flash player popup stating SecurityError: Error #2000: No active security context.

The request doens't even hit my server (I can verify by placing breakpoints in the Java code and watching the HTTP Requests that go out using HTTPFox), so it seems to me that this is a client side issue (right?). I've done some searching for the problem on google and the suggestions included wrapping the upload() call in a timeout/callLater, and attempting to attach the sessionId to the request (since Firefox creates a new thread for the upload and doesn't attach the proper cookies). Neither of these approaches has worked for me. I don't experience this problem with Internet Explorer, only Firefox.

[Code]...

View 1 Replies

Flash :: Upload Only 2 Files On Domain At Time, FileReference.upload Limitations?

Jan 18, 2012

I am creating flash uploader and want to start 10 uploadings at time.But flash upload only 2 files on domain at time, other references wait for something.In IE with ActiveX Player limitation is about 6 files at time.Is there any ideas how to change this limitation? For uploading I need to use FileReference.upload without creating URLRequest object from file data.

View 1 Replies

Flex :: Generate Screenshot And Send It To Server (not Using FileReference.upload)?

Dec 10, 2009

Do you have any ideas? how to generate screenshot and send it to server (not using FileReference.upload)?

View 2 Replies

Flex :: Incorporate FileReference Method Like Upload Into A Cairngorm Architecture?

Jan 14, 2010

how to incorporate FileReference method like Upload into a Cairngorm architecture.Specifically, I would think to fire an event with the File in it, and that's fine. But how would one then be able to listen for e.g. Progress Events?One thing I thought is to have the delegate fire off progress events that are listened for in the View.

View 1 Replies

ActionScript 3.0 :: Using FileReference's Upload To Call A PHP Script From One Folder & Upload Elsewhere?

Sep 9, 2009

Okay, so I am calling my scripts from the folder "php/" Thus, my FileReference calls "php/upload.php" to upload. However, my uploads are in "uploads/" and not in "php/uploads". When the PHP script is called, it apparently ignores the caller (the SWF file) and looks for uploads in its own directory (the "php/" folder). It may be a PHP question, but how do I reference the uploads folder as being in the parent directory of the php files in my PHP script?

View 1 Replies

Javascript :: Call A FileReference.browse() ?

May 25, 2010

I am trying to call the browse() method of the FileReference class from JavaScript (a user clicks on a text that uses the ExternalInterface to call a method in Flash).Unfortunately, I receive an error that tells me it has to be a direct action of the user (like clicking a button). I have searched through Google and realized this is a new security feature in Flash 10.The only solutions I could find was to put a Flash button or to have a hidden flash button over the text, that will call the browse() method.I wanted the browser only to show JavaScript and all the Flash code only called from JavaScript.

View 1 Replies

ActionScript 2.0 :: Filereference.browse Delay On Mac

Nov 4, 2009

I'm having troubles with a contact form containing two file uploads (two buttons with Filereference.browse()-call). On all of my computers, the form works fine (Mac + PC); my client, however, reports a 20-second delay on opening the second browse dialog box (the first one opens right away). Client is on a Mac with latest Flash player version. If he double-clicks it, there is no delay. If he first clicks the second button, the delay is on the first.

[Code]...

View 0 Replies

ActionScript 2.0 :: FileReference Browse Error?

Nov 9, 2009

I have created an image cropper application that upload an image, crop it and generates an jpg to server.BUT, this works perfectly well locally at my Mac at work, online on the server, but not locally at my laptop at home???Why and what the *** can I do?Everything seems fine. I click browse, and the fileReference opens the finder dialog box. But whatever I press, doubleclick the image, press select etc, flash tracks this as if I clicked cancel. The fileRef.onCancel activates, insted of the onSelect???Could it be something wrong with my flash program? Is it anything I can do to fix this (change somthing in the preferenced etc.)?

View 0 Replies

ActionScript 3.0 :: Close A Filereference Browse Box?

Feb 8, 2011

I am using a filereference.browse box so that users can upload images.although the browse box has a cancel button on it, I am also creating an mc_cancel button ( just in case the user's OS's browse does something funny ).currently, when mc_cancel is pressed, I call my_file_ref.cancel() ... but it doesn't actually close the box ... is it supposed too?

View 2 Replies

Flex :: File Upload - FileReference Doesn't Work With NTLM Authentication?

Jul 15, 2011

We use the FileReference component to upload file in Flex. But if the application is deployed within an environment having NTLM authentication (Windows Integrated Authentication), the upload capability will not work, and each time a message box will be popup asking the user to input credentials.I've queried some resource from internet and it seems this is a bug of FileReference component.

View 1 Replies

ActionScript 3.0 :: Close A Filereference Browse Dialog Box?

Feb 8, 2011

is there a way to forcibly close the browse dialog box that is opened by my_filereference.browse() ?
 
filereference.cancel() does not close the box.

View 3 Replies

ActionScript 3.0 :: FileReference.Browse And Renaming Destination File

Mar 25, 2011

I have an application already created that will upload files successfully, with a progress bar and completion notices and am very happy with the process, but sometimes people upload a file with the same name as an existing file. Is there a way to change the name of the destination file on my server to something more standard during the upload process? I have been using a fileReference.Browse() with capturing all my event handlers through there.

View 4 Replies

ActionScript 3.0 :: PHP Uploading File To Server Without Calling FileReference.browse?

Mar 22, 2010

Is there any way to have a function which connects to a server and uploads a local file without calling FileReference.browse?I have an application at a kiosk which is recording a short webcam movie of a guest. Once completed, I'd like for the video to be put on a server and a link send to the guest. I've got the link part working, but am not sure how to get the file up to the server automagically.

View 4 Replies

Actionscript 3 :: Flash Filereference Select Event Not Firing After Using Browse() And After Selecting A File

Aug 11, 2011

This is the first time i am working in action script. I have seen a flash programmer working with it. since i know javascript i was able to work in action script. I am creating a file upload component for my php projects. Until now i have advanced to show the file dialog box using the FileReference api. The select event is not firing for me. and i did not get any error.

[Code]...

View 2 Replies

ActionScript 3.0 :: Browse And Upload Form?

Sep 14, 2009

I have a contact from on a website i am making in flashCS4, i have the PHP script written for me and i have the Action Script to submit this information. i am now looking to add a browse and a upload form.

View 4 Replies

Flex :: Resizing FileReference Image Then Reuploading - Only Reuploads Original Image

Apr 22, 2010

I can;t figure out how to do this. Someone selects and image after calling FileReference.browse(). I take that image and make a thumbnail in flash. Then I upload that image like so:

[Code]...

All this does it upload the original image. How do I change the fileRef to upload the new thumb? I have traced out the size of the "myThumbImage" and it is correct. I have placed it visually on the stage after creating the thumb, and it seems like it works. But when I upload it to an aspx page (that basically just throws it into a folder), it uploads the original larger image.

View 1 Replies

Browse An Image And Then Send It To Data Base Using Flex And Webservice Java

May 4, 2011

want to browse an image and then send it to data base using flex and webservice java

View 2 Replies







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