Strategy to reference a file system in the application?

Hello,
I am working on a web application which has a file system[d:/appname/images] on the application server where images upload by the application are saved.
The file system is referenced in the application code at two different places. One on file upload and another when displaying the image to the client browser.
What is the best strategy to reference the file system in the application context?
Note: Using Struts on the web framework, Spring for the data access framework.
Thanks,
Mohideen.

Personally I don't like to reference the file system directly from a web application. What I would do is put the directory in classpath and then use the Class.getResourceAsStream() method to read the files in the web app. This keeps you from accessing the filesysetm directly from the web app.

Similar Messages

  • File system error: The record ID is incorrect. Physical file: . Logical file:

    Hi,
    I face this error message when I try to 'process update' a dimention, sometime it works but sometime it failed with the error below:
    Description: File system error: The record ID is incorrect. Physical file: . Logical file: . 
    My environment: Window Server 2008 R2+SQL Server 2008 R2.
    Note: this issue can be resolved by full cube process, but I can't to that every time if it failed, just want to know what happen at backend of SSAS, It block me neary 2 week without any finding, really appreciate that someone can help on this.
    I have do some research with google, I think the root cause here is not TopCount function(It may be a problem with SQL Server2005), also not the size limitation of 4GB size of .astore file.(I check the size of my cube under 'Data\XXX.db\' folder, which only
    have few MB size).
    Thanks,
    Tom

    Hi Tom,
    Here is a microsoft fix
    FIX: "File system error" occurs when you try to run a process update operation on a dimension in Microsoft SQL Server 2008 Analysis Services and in Microsoft SQL Server 2008 R2 Analysis Services
    In your acenario, in order to fix this issue, please apply the latest Cumulative update and Service Pack according to your SQL Server version. Besides, there are two workarounds in that fix, plese try it and check if it works or not.
    http://support.microsoft.com/default.aspx?scid=kb;en-US;2276495
    Regards,
    Charlie Liao
    TechNet Community Support

  • ORA-27054: NFS file system where the file is created or resides is not mounted with correct options

    Hi,
    i am getting following error, while taking RMAN backup.
    ORA-01580: error creating control backup file /backup/snapcf_TST.f
    ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
    DB Version:10.2.0.4.0
    while taking datafiles i am not getting any errors , i am using same mount points for both (data&control files)

    [oracle@localhost dbs]$ oerr ora 27054
    27054, 00000, "NFS file system where the file is created or resides is not mounted with correct options"
    // *Cause:  The file was on an NFS partition and either reading the mount tab
    //          file failed or the partition wass not mounted with the correct
    //          mount option.
    // *Action: Make sure mount tab file has read access for Oracle user and
    //          the NFS partition where the file resides is mounted correctly.
    //          For the list of mount options to use refer to your platform
    //          specific documentation.

  • IPhoto9: "library could not be opened because the file system of the library's volume is unsupported."

    Can please anyone help me with this issue.
    After upgrading from iPhoto8 to iPhoto9 my library won't open anymore. I have stored all my pictures on a NAS (Buffalo Link Station Duo). It all worked fine but since upgrading to iPhoto9 I do have the following problem:
    When opening iPhoto I receive a message that the library needs to be updated. I assume that iPhoto should just do this sort of automatically in order to upgrade to iPhoto9.However, next message I receive then is
    "The library could not be opened because the file system of the library's volume is unsupported."
    Apple support so far does not seem to be able to solve my issue. Anyone else having had the same issue and having a solution to this?
    Thanks a lot for your help.

    There is no solution.
    IPhoto needs to have the Library sitting on disk formatted Mac OS Extended (Journaled). Users with the Library sitting on disks otherwise formatted regularly report issues including, but not limited to, importing, saving edits and sharing the photos.While you have been lucky to date, many folks with a library on a NAS found that it worked for a while and then the problems started.
    Workaround: Put the Library on a Disk Image formatted Mac OS Extended (Journaled) and store that on the NAS. But the real solution is to use a properly formatted disk for the Library.
    Regards
    TD

  • What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported".

    What is the best way to copy aperture library on to external hard drive? I am getting a message that say's "There was an error opening the database. The library could not be opened because the file system of the library's volume is unsupported". What does that mean? I am trying to drag libraries (with metadata) to external HD...wondering what the best way to do that is?

    Kirby Krieger wrote:
    Hi Shane.  Not much in the way of thoughts - - but fwiw:
    How is the drive attached?
    Can you open large files on the drive with other programs?
    Are you running any drive compression or acceleration programs (some drives arrive with these installed)?
    Can you reformat the drive and try again?
    Hi Kirby,
    I attached the UltraMax Plus with a USB cable. The UltraMax powers the cable so power is not an issue. I can open other files. Also, there is 500GB of files on the drive so I cannot re-format it. Although, I noted I could import the entire Aperture Library. However, I do not want to create a duplicate on my machine because that would be defeating the purpose of the external drive.
    Thanks,
    Shane

  • ORA-27054: NFS file system where the file is created or resides is not moun

    Linux Red Hat 4
    10.2.0.4
    Had this issue since someone unplugged the san on Monday, and the servers were rebooted. Trying to do a duplpicate to Reporting Server from Production. The error returned, once the backupsets are being copied, is
    ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
    I have edited fstab in the way that the Doc 781349.1 suggests. I have unmounted the mount point and remounted. Themount is set up this way:
    /backup/PROD on /backup/PROD type nfs (rw,bg,hard,rsize=32768,wsize=32768,nfsvers=3,nointr,timeo=600,proto=tcp,addr=172.16.2.92)
    I have checked fstab and it has write permissions for the oracle user with which I run the duplicate command.
    I am able to browse, and create files on the /backup/PROD area.
    Edited by: user11981168 on May 3, 2010 1:02 PM

    It is my understanding that the NFS mouting options necessary to support Oracle vary based on the hardware/OS in use.
    I have the following recored for a NetApp appliance
    hard,bg,rw,vers=3,proto=tcp,intr,rsize=32768,wsize=32768,forcedirectio
    and this for a Linux Client
    rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0
    I suggest your review your platform specific documentationa and any record you have from the origonal set up.
    You might just want to open a SR where you provide the specific hardware info and see if support can help after making another search for documents of interest.
    HTH -- Mark D Powell --

  • IPhoto The library could not be opened because the file system of the library's volume is unsupported.

    Have Yosemite installed on both my MBA and Mac Pro. iPhoto 9.0 running well on the MBA but when I tried opening iPhoto on my Mac pro get the message "The library could not be opened because the file system of the library's volume is unsupported." This is after I upgraded iPhoto.
    Any help would be greatly appreciated.

    While holding down the command & option keys boot into iPhoto and have it repair the Library.  If that does not work then download "Library Manager" and have that program work.  I found that better than the Apple program.

  • I am on a i mac osx 10.8.4 and can not get into i photo i keep recieving the message "The library could not be opened because the file system of the library's volume is unsupported.

    I am on a i mac osx 10.8.4 and can not get into i photo i keep recieving the message "The library could not be opened because the file system of the library's volume is unsupported."

    Where is the Library? It needs to be on a disk formatted Mac OS Extended (Journaled)

  • Trying to make a iPhoto Library on my external hard drive but I get "the library could not be opened because the file system of the library's volume is unsupported.

    Trying to make a iPhoto Library on my external hard drive but I get "the library could not be opened because the file system of the library's volume is unsupported."  I reformatted my hard drive to ExFAT because I want to be able to use it on PC and MAC.
    iOS: 10.10.1
    Mac Book Air
    External: WD 500 GB recently reformatted (no files on it currently)

    The iPhoto library must only be on a volume formatted Mac OS extended (journaled) - it can not be on any other format drive
    LN

  • When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with pr

    When ever I use Adobe reader 11 with a USB device, I cannot safe remove the USB device and get the following message (or similar one) in system log:  The application \Device\HarddiskVolume1\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe with process id 6620 stopped the removal or ejection for the device USB\VID_05DC&PID_C75C\20131215015821328FC8.
    I am running on Windows Server 2012 R2 in Desktop Experience mode.
    Any ideas?
    Roger

    In addition to that symptom, I discovered that even though I had closed all Adobe Reader sessions, the processes kept running and used up 90%+ of my CPU.

  • How/Where are Financial Reports Saved on the File System of the Server?

    We've recently lost a large chunk of our reports on our server. We can't figure out which directory location to restore in order to get those reports back. Where is the default directory for 11.1.2.2 Financial Reports? And in what format are those reports saved?

    The FR reports themselves are found in the Operating System (O/S) file system, but the EPM Workspace heirarchy (folders, tree, etc) are stored in the Hyperion BI+ repository database.
    On the O/S file system, the reports are stored in RM1 folder under "C:\oracle\Middleware\user_projects\epmsystem1\ReportingAnalysis\data\RM1\root" folder.
    The names of the reports located here are UUID (long identifiers - not the actual names).
    For example:
            when a report is created with the name"My report" in the Financial Reporting Studio, when logging into EPM Workspace it will be accessible within Financial Reports/folder name where it was saved.
            the actual report will be stored in a sub-folder of the RM1\root folder on file system.
                The name of the file will be a unique identifier (not the actual name of the report i.e. "My report")
                It will be generated "on the fly" based on various things such as the current date and time on the server (i.e 0000012f5af72b1a-0000-ec71-c0a8006c.00000130510b77bb-0000-5133-c0a8006c.1)
    The meta-data for that report ("My report", that is in the folder in Workspace, the modification date of the report, the permissions on that report, etc.) will be stored in the Hyperion BI+ DB as an object in an encrypted table. Financial Reporting knows what meta-data is in the Hyperion BI+ DB that matches the report, in the "RM1\root" folder because all the rows in the table for this object in the Hyperion BI+ DB that are related to "My report" will be referenced using the UUID of the file (e.g. 0000012f5af72b1a-0000-ec71-c0a8006c.00000130510b77bb-0000-5133-c0a8006c.1)
    Note: The location of RM1 folder differs with each installations' operating system.

  • F4 help for file path in the Application server

    Hi All,
    i want to provide the F4 help so as to enable us to give the file path in the application server (AL11). I'm in version 4.0
    Regards
    Shekhar

    Hi
    Copy paste the following code and see the result
    Here you can see 2 types of open dialogs
    1. Directory View
    2. File View
    Use any one as per your requirement.
    DATA : l_filetable TYPE filetable,
           l_rc TYPE i.
    DATA: l_folder TYPE string,
          l_file TYPE string.
    PARAMETERS: p_folder(100) TYPE c,
                p_file(100) TYPE c.
    *Provide a Dialogue box for getting a folder path
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_folder.
      CALL METHOD cl_gui_frontend_services=>directory_browse
        EXPORTING
          window_title    = 'Select Folder Path'
          initial_folder  = 'D:\'
        CHANGING
          selected_folder = l_folder.
      p_folder = l_folder.
    *Provide a Dialogue box for getting a file path
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      CALL METHOD cl_gui_frontend_services=>file_open_dialog
        EXPORTING
          window_title      = 'Select a Text File'
          initial_directory = l_folder
        CHANGING
          file_table        = l_filetable
          rc                = l_rc.
    Reward points generously
    Regards
    Akshay Chonkar
      READ TABLE l_filetable INTO p_file INDEX 1.
      CHECK sy-subrc <> 0.

  • Regarding the File Format on the application server

    Hi,
    I would like to know the file format (ANSI, UTF-8, UTF-16, UTF-32) of the file placed on the application server in my program. Can anyone help me with the Function Module or Class or any other way which will retrieve this information.
    Thanks
    Sarves S V K

    Hi
    You can try the standard class CL_ABAP_FILE_UTILITIES and the method
      CALL METHOD cl_abap_file_utilities=>check_utf8 
        EXPORTING 
         file_name = filename 
        IMPORTING 
         bom       = file_bom 
         encoding  = file_encoding. 
    Check the possible values returned by encoding and BOM:
    NO_BOM
    BOM_UTF8
    BOM_UTF16_BE
    BOM_UTF16_LE
    ENCODING_UTF8
    ENCODING_7BIT_ASCII
    ENCODING_OTHER

  • ı have installed an application about lock system but the application isnt about lock systm this is an code reader. when ı see the application's pictures this is an lock application but content not same. I have got laid...what shoul I do?

    I have installed an application about lock system but the application isnt about lock system this is an code reader. When ı see the application's pictures this is an lock application but content not same. I have got laid...what should I do?

    semihtinas wrote:
    Please make something these fraudsters
    You're not addressing Apple here. This is a user to user technical support forum. You can submit feedback to Apple here:
    http://www.apple.com/feedback
    Other contact information can be found using the Contact Us link at the bottom right of every page.

  • How to send the file contents in the application server to ftp server

    Hi,
    how to send the file contents in the application server to ftp server.
    regards,
    sree

    Test SAP FTP functions
    DATA: BEGIN OF MTAB_DATA OCCURS 0,
    LINE(132) TYPE C,
    END OF MTAB_DATA.
    DATA: MC_PASSWORD(20) TYPE C,
    MI_KEY TYPE I VALUE 26101957,
    MI_PWD_LEN TYPE I,
    MI_HANDLE TYPE I.
    START-OF-SELECTION.
    MC_PASSWORD = 'password'.
    DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
    *-- FTP_CONNECT requires an encrypted password to work
    CALL 'AB_RFC_X_SCRAMBLE_STRING'
         ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
         ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
         ID 'DSTLEN' FIELD MI_PWD_LEN.
    CALL FUNCTION 'FTP_CONNECT'
         EXPORTING
           USER            = 'userid'
           PASSWORD        = MC_PASSWORD
           HOST            = 'servername'
           RFC_DESTINATION = 'SAPFTP'
         IMPORTING
           HANDLE          = MI_HANDLE
         EXCEPTIONS
           NOT_CONNECTED   = 1
           OTHERS          = 2.
    CHECK SY-SUBRC = 0.
    CALL FUNCTION 'FTP_COMMAND'
         EXPORTING
           HANDLE = MI_HANDLE
           COMMAND = 'dir'
         TABLES
           DATA = MTAB_DATA
         EXCEPTIONS
           TCPIP_ERROR = 1
           COMMAND_ERROR = 2
           DATA_ERROR = 3
           OTHERS = 4.
    IF SY-SUBRC = 0.
      LOOP AT MTAB_DATA.
        WRITE: / MTAB_DATA.
      ENDLOOP.
    ELSE.
    do some error checking.
    ENDIF.
    CALL FUNCTION 'FTP_DISCONNECT'
         EXPORTING
           HANDLE = MI_HANDLE
         EXCEPTIONS
           OTHERS = 1.
    Execute external commands (FTP Scripts)
    The following code shows the syntax of the FM 'SXPG_COMMAND_EXECUTE'. You pass it the external command created within transaction SM69 and it will execute it.
    DATA: ld_comline 
    LIKE sxpgcolist-name,
            ld_param    LIKE sxpgcolist-parameters,
            ld_status   LIKE extcmdexex-status,
            ld_output   LIKE btcxpm OCCURS 0 WITH HEADER LINE,
            ld_subrc    LIKE sy-subrc.
      REFRESH ld_output.
      MOVE 'FTP_DATA_IN' to ld_comline.         "Maintained using trans SM69
    Execute external command, contained in 'ld_comline'
      CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
           EXPORTING
                commandname                   = ld_comline
              additional_parameters   = ld_param  "Params passed to script
              operatingsystem              
    = 'UNIX'
           IMPORTING
                status                        = ld_status
           TABLES
                exec_protocol                 = ld_output
           EXCEPTIONS
                no_permission
                     = 1
                command_not_found
                 = 2
                parameters_too_long          
    = 3
                security_risk                
    = 4
                wrong_check_call_interface    = 5
                program_start_error           = 6
                program_termination_error     = 7
                x_error                       = 8
                parameter_expected            = 9
                too_many_parameters           = 10
                illegal_command               = 11
                wrong_asynchronous_parameters = 12
                cant_enq_tbtco_entry
              = 13
                jobcount_generation_error
         = 14
                OTHERS                       
    = 15.
      IF sy-subrc NE 0.
      ENDIF.

Maybe you are looking for

  • Third-party Instruments Dead. But...

    My $300 Garritan Personal Orchestra is dead on my Intel iMac. Rosetta is of no use in allowing it to be accessed in GarageBand 3. This is a major downer. However, Andy Drabble is in the process of creating a binary for SoundFont Synth. And this is go

  • Can't get to that JPanel!!!!

    Hi all, I'm creating a drawing app. I've got a JTabbed pane that holds all my drawings. Each tab holds a JScroll pane which in turn is holds my DrawCanvas class (which does the drawing business). Anyway I can't seem to access the draw Canvas - which

  • Coding in form created in screen painter

    I have created a form in screen painter.How can I do coding in this form.I have added a save button in the form.How can I fire the click event on this button.The file created has extension srf and it can not be opened in asp.net.

  • HAVI package? IntelliJ?

    Hi all :) I was wondering if anyone here would be so kind to help a newbie like me. The thing is that I need to use the org.havi.ui package to run a xlet. I am using IntelliJ (or at least trying to) and for the xlet I already manage to add the javatv

  • Adjust Image Won't work

    Hi: I'm New to Keynote and I started to work with it and when I go to adjust an image nothing happens. Its like the controls are all frozen...Its strange because I have iPhoto too and all of the image adjust controls disappeared for that. Anyway, any