Is reading local file possible?

Hi,
My intention is to use Flash 8 Pro as a tool allowing to
upload large files
into the server (something like FTP client). Unfortunately a
lot of servers
have tight restrictions for transmition time (sometimes
limited to 30s).
Work around to this could be a Flash. I couldn't find any
information in
Flash documentation about reading binary files selected by
user by
HTML-like file field. I would like to read selected file,
split it into
severeal smaller parts and then upload every part separately
into the
server. Is it possible?
Regards,
Marek

> Czesc Marek
Hi! It seems you speak my native language :-)))
> Flash itself has no FTP capabilities. The only thing you
can do is use
> middle ware
> like php or asp and server side to upload stuff to
server and use flash to
> prompt
> the Browse for File dialog, and than upload your files.
Flash itself has
> no way of
> doing it at all unless with middle ware.
Yes, I know that. That is the reason why I have written
'somethig like FTP'.
Ok, once again... I can create PHP script to receive POST
uploads. This is
no problem to me. The problem is that iddle time for scripts
on this
particular server is set to 30 seconds only. It means that I
can't upload
files for which transfer time will be longer then 30s. To
work around this
issue it is necessary SPLIT uploaded file into the chunks
then transfer it
to the server and join using e.g. PHP script. I need a tool
embeded on web
page which allows me to select large file (large sometimes
means 1MB) and
send into the server jumping over server time limitations.
Flash contains
build-in FileReference class but there is no described in the
documentation
how to send selected file as e.g. 4 separate parts of it.
> There is an upload samples which comes with
> flash and can be located under the SAMPLE directory on
your C drive in the
> Macromedia
> folder. This is as far as it goes.
It is also described in Flash help under FileReference class
description.

Similar Messages

  • Reading local files

    I need to read local files in C with Alchemy (at least on
    developer's machine). This should allow more rapid application
    development with Lua Alchemy -- as developer would be able to
    exclude swf build step.
    I have added directory with my .swf to the FlashTrust config.
    I'm able to load the file with URLLoader. However fopen() on it
    returns NULL. Please see the attached code.
    Executables, compiled with Alchemy (and run with swfbridge),
    are able to work with local files. What should I do to allow my
    application to work with local files in the same manner?
    Alexander.

    quote:
    Originally posted by:
    notnick
    You have not tried?- funopen ()
    returns a FILE pointer.
    Just in
    samples / libpng
    I have not tried it yet
    I have tried fopen(), and it does not work (see code in
    original post). I would like to get working fopen() (and family)
    somehow, so I would be able to get vanilla Lua sources to work with
    files.
    My other option, of course, is to replace file-related
    functions in core Lua libraries. This is not that hard, and even
    doable without modifying of Lua sources, but I'd like to avoid this
    solution.
    UPD: I have looked at the libpng sample. If I get it
    correctly, funopen() there operates on ByteArray, not on actual
    file. (I have no experience with BSD API, so it was not immediately
    clear for me.)
    I need to operate on actual file on local file system.
    Thank you,
    Alexander.

  • AccessControlException in signed applet for simply reading local file

    I have a simple applet that reads specified local image files and uploads them to our server. On both Mac OS X and WinXP (firefox and IE7), I get the following error. I signed the applet using an InstantSSL code signing certificate (not so easy getting this to work, but I'm pretty confident I did it correctly).
    java.security.AccessControlException: access denied (java.io.FilePermission /Users/scott/Documents/photos/Ken_and_Scott.jpg read)
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
         at java.security.AccessController.checkPermission(AccessController.java:427)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
         at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
         at java.io.File.length(File.java:813)
         at org.apache.http.entity.mime.content.FileBody.getContentLength(FileBody.java:89)So just on getting the file length, it's throwing this exception. Interestingly, this file passed both file.exists() and file.canRead() checks within the applet (in windows the path is a bit different of course but also passes both those checks). Also, that file has no read restrictions and I can load it in a browser no problem.
    I assume I'm missing a step in the applet code signing process, maybe a step that says I'm allowed to read local files?

    I figured out my issue, the apache HttpClient library needed to be signed too apparently.

  • Read local file in background

    hi everyone,
    i need to read local file in background,
    wich function do i need to use?
    thanks,
    dana.

    if you are reading in background file needs to be on application server.
    you can use following function modules.
    CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
    OPEN DATASET FILENAME FOR OUTPUT IN TEXT MODE
                          MESSAGE MSG_TXT.
    IF SY-SUBRC NE 0.
      WRITE: 'Err', MSG_TXT.
      EXIT.
    ENDIF.
    LOOP AT INT_TAB
    *your code
    ENDLOOP.
    Closing the File
    CLOSE DATASET FILENAME.

  • Record video to local file: possible in AIR 2.5?

    Our shop is spec'ing an application that will include recording high-quality video on a user's workstation for later upload. We thought of building in Flex and distributing as an AIR application. Before now, my research tells me, one could capture microphone sound to a local file, but video has always required NetStream.publish() to a FMS server. The other way to go was using NativeProcess to communicate e.g. to FFMPeg -- there's a devnet article about just that here: http://www.adobe.com/devnet/air/flex/articles/air_screenrecording.html
    Neither of those scenarios is a good fit to our need.
    Question: does the AIR 2.5 release make it possible to record local Camera video to a local file?
    Thanks in advance,
      Laurence

    I didn't think recording was the issue, rather encoding into something less huge than a sequence of raw bitmap captures in a reasonable amount of time. There aren't any changes in AIR 2.5 to improve that aspect.
    There is this library that claims to encode captured video into FLVs (I haven't tried it yet): http://www.joristimmerman.be/wordpress/2008/12/18/flvrecorder-record-to-flv-using-air/

  • Reading local file in VC

    Hi All,
    Is it possible to open a local file with some path like C:\temp\...... in VC?
    Regards,
    Murtuza

    Hi Govinda,
    Do you know the format how to write the path of the file in the field 'file name' of the HTML view?
    Is there a possibility that the user is prompted to enter the file path on runtime?
    Best regards
    Salvador Gimeno

  • Applet can't read local file on web server, security issue!

    There is any way to read/write files of web server through the applet except the Signed Applet.
    If any idea the reply me soon.
    Thanks in advance

    Applets are downloaded from web servers and execute on the client machine.
    Therefore they have no access to the web server file system, signed or not.
    They could have access to the client file system (the machine where they run),
    but for security reasons only signed applets have this privilege.
    So to answer your question, you sign if you want to access client files.
    To access web server files, you don't need to sign the applet, but you need
    to provide some method of accessing files remotely, for instance:
    - Files published for the web can be read using HTTP
    - Files can be read or writen with the help of an FTP server on the same machine as the web server
    - A servlet running on the HTTP server can collaborate with your applet to exchange files

  • Upload local file

    Good Morning,
    This is the scenario:
    I put my applet in webserver. User go to this server (eg. http://www.test.com) and execute my applet
    through web-browser. Now, this user wants to upload files. Is this possible?
    I want the applet to be able to read the local file and save it to the database (JDBC). But all I need
    is the technique to read local file. Sample source code will be appreciated.
    Please help.
    Thank You.

    konglomerat_muda wrote:
    Good day,
    I need an example how to upload file using applet. If there's one out there, you can search for it here or try Google, but I don't recommend this approach.
    Applet is a must.I seriously doubt that, as I can't recall hearing of this type of a requirement since the invention of Applets.

  • Problem with File panel and Local files

    I am having a couple of problem using Dreamweaver  (which may be related) and can’t find any appropriate help on the web site.
    I have created a small website and have it up and running.    I’m now trying to do some minor modifications.     But Dreamweaver seems to have lost the address of my local files on my home computer (although files are still there in the same place.)      In the on-line training material it shows how to define where the root directory is when you start developing a site,  but I can’t find where these setting are so I can check and if nessessary amend them.   If I go to Define Site from the Site drop down options,  this does not allow me to check or define the root directory.
    Secondly,  in the File panel (lower right on the screen) the address bar at the top only shows the remote files and the icons to the right (“put”, “get”, etc) have disappeared and I can’t seem to get them back.   Also that lower panel seems to be floating rather than being fixed like it was.     I have tried clicking on Classic View in the Workspace layout options but this doesn’t move things back to how they were when I first started using Dreamweaver (just a few weeks ago).
    Can you offer any advice on what the problem is and how to manage it?  Many thanks.   I'm  using Dreamweaver CS4 and an iMac.

    Immediately below the Tabs saying "Files" and Assets" is a small box 
    with arrow on the right to show the drop down list.        In the box 
    on the right there's an icon of two networked computers.  Then it 
    says, "ftp://Hill farm Web Site"  which is the name of my website.     
    If I click on the arrows to pull up the drop-down box,  I get four 
    options divided by a line.   Above the line the options are Computer, 
    HD and ftp://Hill farm Web Site.  Below the line it says manage sites.
    Below this is list of files that make up my website in a directory 
    structure.   The header for the first column reads, "Local Files",  
    which appears to be untrue, because the top line in the directory 
    structure below reads,  "ftp://Hill farm Web Site".
    Does this help?
    regards
    David

  • Code to read local notepad.txt from applet

    Hi.
    Further to my (unanswered) queries about reading a notepad.txt file from the local directory i.e. the same directory from which the html and applet were launched, the following code is supposed to be able to read the local file. It failed to do so both in Netscape 7.1 and in IE5
    I've also received conflicting advices : some says we can read local files without using a signed applet or chaning the ACL, whereas others I'll need to use signed applets and / or acl to allow the applet to read a local file.
    My research has shown that java applets are supposed to be able to read local files. Has something changed:
    public class FileAccess extends Applet
       implements ActionListener {
       Button loadButton, saveButton;
       TextField filename;
       TextArea  content;
       String browserName;
       boolean securitySupported = false;
       public void init() {
         setLayout(new FlowLayout());
         Label label =
           new Label("Simple file editor");
         add(label);
         loadButton = new Button("Load");
         saveButton = new Button("Save");
         add(loadButton);
         add(saveButton);
         loadButton.addActionListener(this);
         saveButton.addActionListener(this);
         filename = new TextField(20);
         add(filename);
         content = new TextArea(5,20);
         add(content);
         browserName = System.getProperty("java.vendor");
         if (browserName.indexOf("Netscape") > -1)
            securitySupported = true;
         setSize(200, 200);
       public void actionPerformed(ActionEvent evt)  {
         if (securitySupported) {
            if (evt.getSource() == saveButton) {      
               PrivilegeManager.enablePrivilege("UniversalFileAccess");
               try {
                  FileWriter aWriter = new FileWriter(filename.getText(), false);
                  aWriter.write(content.getText());
                  aWriter.flush();
                  aWriter.close();           
               catch(Exception e) {
                 e.printStackTrace();               
            else if (evt.getSource() == loadButton) {
               PrivilegeManager.enablePrivilege("UniversalFileAccess");
               try {
                  BufferedReader aReader  =
                     new BufferedReader
                        (new FileReader(filename.getText()));
                  content.setText(aReader.readLine());
                  aReader.close();           
               catch(Exception e) {
                 e.printStackTrace();               
          else {
            getAppletContext().showStatus("security not installed");
    }

    Hi acinhk,
    I read your note with great interest. I am trying to solve almost exactly the same problem as you are -
    Reading a .txt file in IE5 from the same directory where the html and the applet were lauched.
    Your code looks fine to me.
    My code is very similar, and again generates a security exception - as I am having the same problem you had getting around Java security.
    If you have been able to solve the problem, can you please let me know what you did.
    Any modifications to your sample code that actually made it work would be greatly appreciated.
    Also, is signing the applet to read a local file under IE5 really necessary ?
    Can the file be read from the local IE file system without signing the applet ?
    Please let me know your thoughts.
    Thanks !
    drbob

  • How to convert the local file into unicode file?

    Hi All,
    I need read local file (GUI_UPLOAD) and save it as unicode file?
    I've found class CL_ABAP_CONV_OUT_CE but I've no idea how to use it.
    Should I read file in binary mode and then convert it into unicode? AT the and save it (GUI_DOWNLOAD) ?
    Thanks
    Adam

    Hi,
    Check these classes, will help you
    CL_ABAP_CONV_IN_CE : Reading binary data
    CL_ABAP_CONV_OUT_CE : exporting binary data
    CL_ABAP_CONV_X2X_CE : reading and exporting binary data and changing the format
    Regards,
    Satish

  • How to read the contents of a file present in local file system

    Hi ABAP Experts,
       I want to read the file contents of a file in the local system. I want to read it stream based i.e if the file is if 100kb in size, i want to read the first 100bytes at one time, next 50 kb after, and remaining some other time. Is this possible. I know that with GUI_UPLOAD i can get the total contents into a xstring.
    But how to resolve the following i am not sure. Can you please help.
    Thanks & Regards,
    Vinay.

    Hi,
    transfer file to your application server and use:
    open dataset file ... AT POSITION p .
    regards Andreas

  • Is it possible to connect a local file server to 365 onedrive via sharepoint?

    We have our local 2012 file server with everyones document directories and common shares. We use AD and have all user accounts defined. As part of our K12 licensing we have Office 365 E1 for all staff, so I set up the Azure AD Sync and we now have all the
    staff accounts set up in 365 and people can work on Office from home.
    The problem is that everyone wants their files from home as well, ideally in their OneDrive. OneDrive for Business doesn't seem to have a mechanism to sync all the files from our file server to each persons OneDrive automatically. I read somewhere that I
    can do it by using SharePoint as a intermediary - that is I can set up a local sharepoint that syncs the fileserver to sharepoint, then I can set up the 365 sharepoint to sync between the onprem sharepoint and the 365 OneDrives.
    This seems like a massive pain but is it doable? is there a better way or is it not possible and sharepoint/local files will always be separate from Onedrive?  it seems like such a common and obvious request for people who can't dump local file servers.
    Mark

    not all to each, just duplicating our current system. Each user has a few hundred mb of files (on average) and there is a common drive with a few hundred gb.
    Right now the assumption by Microsoft is that each user will individually install the local Onedrive app and sync their C: drive documents folder to their Onedrive. In our case we have the documents stored centrally and the onedrive app will not sync a network
    folder. I am looking for some method of making it happen.

  • Reading files from local hard disk - Access Local Files Only

    Hi All,
    I have a local flash file published as 'Access Local Files Only', to allow me to read from local filesystem.
    What methods or classes can I use to read text and other files from the user's harddisk.
    This is the first time I am trying to do something like this, all help is grealy appreciated.
    Thanks
    Andy

    Hi, thanks for the responses
    I did some searching and found that the urlloader class is the right one for the job.
    'Access Local Files Only' option is provided for this very purpose I believe.
    If anyone has done something like this and have some sample code it would be awesome
    Cheers
    Andy

  • Help with utl_file (read/write file from local directory)

    Need help reading/writing file on local machine from plsql using 10.2 DB.
    I am trying to read/write a file from a local directory(laptop) without success.
    I have been able to read/write to the database server directory but can't write to directory on local machine.
    The utl_file_dir parm has been set to * and the db restarted but I can't get it to work... Here's the plsql statement.
    out_file := UTL_FILE.FOPEN ( 'C:\PLSQL', 'TEST.TXT', 'W' ,32767);
    Whenever I run it continues to write to c:\PLSQL dir on the database server. Have looked at the "Directory" object and created MY_DIR = C:\PLSQL but it writes to the db server.
    Running 10.2 on a remote windows server, running PLSQL using sql*navigator.
    Thanks in advance for your help..

    I don't see how you expect the server to be able to see your laptop across the network, hack into it and start writing files. Even if it could, what if there is more than one laptop with a C: drive? How would it know which one to write to?
    Is there a shared drive on the server you can access via the laptop?

Maybe you are looking for

  • Multiple users on one itunes account

    Hi. I have 3 separate users on my Windows 7 machine with each having a unique library but all sharing the same itunes account. I want to split them up and give 2 of them new itunes accounts but obviously I want them to keep their library and if possi

  • How do I navigate to /usr/local in the Finder?

    I have a file in a folder beneath /usr/local that I want to be able to open in the Finder. However, there does not appear to be any way to navigate to this folder (or various other folders beneath /) in the Finder. What do I do? If it makes any diffe

  • Report Version 4 since Leopard Update...I can not use Ichat anymore

    Hi, It seems that there is many pb with Ichat since Leopard, does anybody know what is wrong, I think I tried everything - turn off sharing internet - change the ports - change the bandwith - add Ichat into the security etc... Any help will be apprec

  • HT5624 I Am not able to open my IPAD - it is asking for a "Pass Code"  what is this?

    I am not able to open my IPAD - it is asking for a "Pass Code"  what is this?

  • Photoshop & quark

    I recently purchased a Macbook Pro with Snow Leopard. I sucked the info out of my imac which is running 10.5 to set it up. When I tried to open Photoshop, the icon in my dock jumps once and does nothing else. I couldn't get it to open. I just install