Questions tagged [filereference]

A file reference is an object that allows programs to refer to files on a file system, and operate on them. Browser-based applications (e.g. JavaScript and ActionScript) need them to save and upload files to / from the user's file system because all file system interaction is policed by the browser itself.

A file reference is an object available in most programming languages' libraries.

In ActionScript, file upload and download must be done through the FileReference class, and the Flash Player has to channel those requests to the hosting browser.

172 questions
1
vote
1 answer

Actionscript image download open custom viewer

i am downloading tiff images from WAMP server using our Flex AIR client. Using the following code for that. public static function requestDownload(id:int, defaultName:String):void { //POST params var urlVars:URLVariables =…
Blue Sky
  • 807
  • 1
  • 15
  • 36
1
vote
1 answer

Save in flex a file get by web service

I'm working with Flex 10 for web applications. I need to save a binary file which is received in Flex from a web service. To do this I need to use FileReference.save(), which must be invoked by a user event (mouse or keyboard) for security…
Rodrigo
  • 567
  • 7
  • 24
1
vote
2 answers

Error on saving images

I'm trying to save the content of a MovieClip in a JPEG image, but when I save it the image has this problem: There is a blank space in it (obvious from quote formatting), this appears in all the images that I try to save using filereference with…
1
vote
2 answers

Outputting an uint / Number value as a String in ActionScript3

Let me preface this by stating that I am not terribly familiar with ActionScript, so forgive any seemingly obvious things that I may be missing. I current have a very simple function with an AS3 application that will output a file when a button is…
Rion Williams
  • 74,820
  • 37
  • 200
  • 327
1
vote
0 answers

AS3 filereference browse() method does not work in Chrome

I'm implementing a file uploader in AS3 and came across a problem: the browse() method of a filereference class does not work in Chrome, i.e. the dialog window to select files does not open. This is a definitely a problem with pepper flash player,…
zavr
  • 2,049
  • 2
  • 18
  • 28
1
vote
2 answers

Referencing a .dat file in Java project

I'm struggling to reference a .dat file in my java project in Eclipse. My file structure looks like this: I'm trying to reference 'GeoIPLite.dat' from my 'LookupCountry.java' file. When I say "Reference" I actually mean just getting a String object…
user818700
1
vote
1 answer

FileReference and HttpService Browse Image Modify it then Upload it

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…
1
vote
1 answer

Flex DataGrid Not Updating When Loading New Excel File

I am new to Flex coding and am trying to import an Excel file so that I can work with it later. I've cobbled enough together from the two articles below so that I can successfully load one Excel file and display the contents in a DataGrid. However,…
corey_s
  • 13
  • 4
1
vote
1 answer

Multiple File Select in IE9 and Passing FileReference Data to Javascript

So, Ive created a HTML5 XHR multi file uploader using javascript and jquery. Now I want to be able to offer a flash based fall back for browsers who only allow the selection of one file at a time (like Internet Explorer). My question is, can I get…
Jimmery
  • 9,783
  • 25
  • 83
  • 157
1
vote
1 answer

AS3, AlivePDF and open generated PDF in browser

Is it possible to generate a PDF with alivePDF and open it in a browser without using PHP? Now I am using filereference class to popup a save dialog and then save to PDF, but I need to open the generated PDF in a browser. Is this possible? Throw…
user1734029
1
vote
2 answers

AS3 browse client files from SWF in a server

newbie on AS3 here! :) basically I'm trying to write an application that let the user choose an image file and display it (then I will manipulate pixels, so i don't want the application to store the image in a new file, just managing the…
datamosh
  • 130
  • 3
  • 10
1
vote
3 answers

How to save a file to a specific destination (so no "Save As" dialog box)

I'm attempting to save an image in flash, with the current code: var fileReference:FileReference = new FileReference(); fileReference.save(byteArray); That code opens up a "Save As" dialog box, prompting the user to pick a destination for where the…
user849137
1
vote
1 answer

Upload Video using new FileReference class

With the changes to the FileReferance rules for FP10 it is now possible to upload a local file directly to the client side application without the server roundtrip. For loading an image I use this code to deal with the ByteArray: private function…
user81962
1
vote
0 answers

Flex Filereference automatically retry when failed (like error #2038)

Is there a way to automatically retry Fileupload.upload() opertaion if it fails with IO_Error? I tried calling upload() again (and it did reach all the way to the web-service) ==> but it did NOT trigger DataEvent.UPLOAD_COMPLETE_DATA when the Retry…
Eran
  • 27
  • 4
0
votes
1 answer

Flash upload only 2 files on domain at time, FileReference.upload limitations

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…
Turansky
  • 46
  • 2