Capture File name from the messageFileUpload bean

Hi All,
Please let me knw, how to capture the file name from the messageFileUpload bean. I have attached a blobdomain type view attribute to this bean. I am able to get the file content , but not able to capture the file name entered.
Please help me ...very urget...
Regards,
Tarun

Any solution for this?
Thanks
Santosh

Similar Messages

  • Can we possible to retrive the file name from the directory...?

    Can we possible to retrive the list of files or file names from the directory...?
    The directory called create or replace directory [directory_name] as ....

    Yeah, yeah its very good example for this scenario.
    I agree. But, I want to learn about Java based PL/SQL code development for that just I am asking any link for this kind of material.....:-)

  • Seperating file name from the path

    Hi,
    im trying to validate the file path and trying to seperate file name from the path.
    for eg.
    if the path is f:\sapfilepath\doc\ext.txt
    need to get f:\sapfilepath\doc  im looking for a dynamic way of doing this.
    your help will be appreciated.
    Regards,
    ravi.

    Hi,
    Use the function module
    SO_SPLIT_FILE_AND_PATH
    Thanks,
    Naren

  • Obtaining file name from the file path given

    hi,
    how to obtain  file name from the file path given

    Hi bharath,
    1. PC_SPLIT_COMPLETE_FILENAME
    2.
    DATA : path LIKE pcfile-path.
    DATA : extension(5) TYPE c.
    path = filename.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    * CHECK_DOS_FORMAT =
    IMPORTING
    * DRIVE =
    extension = extension
    name = name
    * NAME_WITH_EXT =
    * PATH =
    EXCEPTIONS
    invalid_drive = 1
    invalid_extension = 2
    invalid_name = 3
    invalid_path = 4
    OTHERS = 5
    regards,
    amit m.

  • Get a font's file name from the font's postscript name (on Windows)

    I am trying to obtain the the font file name when the only information I have is the font's 'postscript' name. (Emphasis: the font's name is postscript and not the font).
    For example I have the following postscript name: TimesNewRomanPSMT.
    The real name that is saved in the registry is: Times New Roman (TrueType).
    Is there any way of obtaining that name from the given postscript name?
    Currently I am coding this for Windows, but it should be compatible, or at least have alternative code for MacOS

    Funny. I'm having the same problem and was about to post the exact same question
    In Photoshop, there is "app.fonts", which lets you get a font's postscript name from the font's name. This doesn't exist in After Effects.
    My only hope is that there's a way to get a font's postscript name in Visual Basic. I'll let you know if I find anything useful.

  • Individual report path with defined file name from the report settings in Testsand 2012

    Hi,
    I have following task:
    I want to test stand 2012 in each sequence to change the path of the report file. But the naming of the file is to be maintained as these settings can be made from TestStand into the report (DisplayName + _Report_ [<FileDate>] [<FileTime>] <unique>. <File Extension). I can not find now, however, the / callback parameter on which the components are assembled path and file in TestStand.
    While I can read about the callback "GetReportFilePath" the path and file name, and with the expression: Parameters.ReportFilePath = "c: \ \ electro \ \ SHARE \ \ test protocols \ \ Test Logs \ \" change the path, but the file name will no longer be formed from the settings of TestStand.
    I have the suspicion that I'm just not accreting at the right place. Can someone please give me a hint?
    greeting Michael
    Greetings Michael

    See Oracle Metalink,
    ..Oracle Portal Technical Forum,
    ....Subject: PORTAL - uploading files (file attachments) with file names.
    This message thread outlines javascript code that automatically captures the filename during an upload.

  • Mail to File - how to read the attachment file name from the subject.

    I need to use the SHeaderSUBJECT's value in the receiver file adapter's variable substitution.
    This is a Mail to File scenario without design part where the attachment file name comes in the subject of the mail.
    I see the below in the dynamicconfiguration section. How can i retrive the value from dynamicconfiguration section to the filename.
    <SAP:DynamicConfiguration xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Record namespace="http://sap.com/xi/XI/System/Mail" name="SHeaderSUBJECT">PlainAttachment.txt</SAP:Record>
    </SAP:DynamicConfiguration>
    Points will be rewarded.

    Try to use sthg like this in a UDF :
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().getStreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create(“http://sap.com/xi/XI/System/Mail”,“SHeaderSUBJECT”);
    String value = conf.get(key);
    or in a JAVA mapping :
    DynamicConfiguration dynConf = (DynamicConfiguration) param.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey dynKey = DynamicConfigurationKey.create((“http://sap.com/xi/XI/System/Mail”,“SHeaderSUBJECT”);
    String keyValue = dynConf.get(dynKey);
    param is the map object from the execute() method of your mapping ...
    Hope this helps
    Chris
    Edited by: Christophe PFERTZEL on Apr 23, 2008 11:34 AM

  • Locating source file NAME from the executable file?

    Hi all, 
    I wrote a vi a couple of year ago (call it file.vi), and created an executable out of it using the Application Builder (call it newfile.exe). I know I renamed the file
    when I created the executable and now I cannot remember what I called the source file (I have hundreds in my PC, and cannot go through them one by one).
    Is there anyway I can get the name of the original file from the executable? Notice that I am not asking to recreate the source file from the executable, which I understand is not possible. 

    murchak wrote:
    Dennis, 
    I must come clean and admit that I don't really know what source control is. Is it a back up of source codes in one place like a server? I am not a programmer but use some LabVIEW to 
    automate a few simple tasks (mostly related to test data). I work solo in this area and there's not a group of people working on different pieces of the same project. 
    I can Google and learn what source control is. I am assuming that the concept itself is not specific to LabVIEW, unless LabVIEW has build-in funtionality for source control
    It is more like a database of files.  It keeps versions on each file so that you can revert back to a previous version if needed.  If working in a team environment, it helps to merge code and keep everybody up to date with everybody else.  But the versioning is the most important part.  I then recommend keeping the repository on a server that is regularly backed up.
    For a simple SCC software, take a look at Tortoise SVN.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Hello, bought a used Mac and I'd like to change the home file name from the previous owner having someone elses name on the home icon is driving me nuts thanks!

    Hello - new to mac -  bought a used Mac OS X 10.6.8 - I'm set up as admin yet can't seem to remove or edit the home file (john's computer with the home icon).  Anyone know how to do this? 
    Message was edited by: macmom7

    Before following these steps, you may wish to back up your important data.
    For Mac OS X v10.5 or later
    Enable the root user.
    Log in as root.
    Navigate to the /Users folder.
    Select the Home folder with the short name you want to change, and rename it just like you would rename any folder. Keep in mind that the shortname must be all lowercase, with no spaces, and only contain letters.
    Use the Users & Groups pane (Accounts pane in Mac OS X v10.6.8 or earlier) in System Preferences to create a new user with the Account name or Short Name that you used in the previous step.
    Click OK when "A folder in the Users folder already has the name 'account name'. Would you like to use that folder as the Home folder for this user account?" appears. Note: This will correct the ownership of all files in the Home folder, and avoid permissions issues with the contents.
    Choose Log Out from the Apple menu.
    Log in as the newly created user. You should be able to access all of your original files (on the desktop, in Documents, and in the other folders of this Home).
    After verifying that your data is as expected, you can delete the original user account via the Users & Groups pane (Accounts pane in Mac OS X v10.6.8 or earlier).
    Disable the root user
    http://support.apple.com/kb/HT1428

  • How to fetch the Date column(or Month column) from the file name from the specified path in ODI 11g

    Hi ALL,
    Can any one help us regarding How to fecth the Date column(or month column) from the file name specified in the path in a generalized way .
    For example :
    file name is :subscribers (Cost) Sep13.csv is specified in the below path
      E:\Accounting\documents\subscribers (Cost) Sep13.csv
    here I need to fetch the "Sep13" as a Date column in the ODI 11g in the generalized way.
    Can any one help us in this case as early as possible.

    I would suggest using a piece of Jython code for this.  Something like this...
    import os
    import os.path
    filelist  = os.listdir(E:\Accounting\documents\)
    for file in filelist:
    datestr = file[19:-4]
    You'd need to work out what to do with datestr next...  perhaps write it to a table or update an ODI variable with it.
    Hope this is of some help.

  • How to Remove Jar File name from the screen of nokia 40 series

    hi
    i have the problem with running midlet.
    the jar file jame is always visible on the screen, how to remove that ?

    >
    Prasanna Kumar wrote:
    > Hi ALL
    >
    > I am using  file adapter and I what to create file name dynamically by acesssing PO number and time stamp from the payload using variable substution.
    > But the problem is I am getting ":" in time stamp field value and it is not acceptable for file name .
    > So could you please tell me a way that I can remove this ":" from that particular field value and create the file name dynamically.
    >
    > Note 1)Add Time stamp option will not help me as we require a time stamp of particular zone.
    > 2) Dynamic Configuration code is also not use full as I am using 1:n file creation
    does the time stamp with the ":" a part of your output file?
    else use a replaceAll function in your mapping and replace the : with empty string then use the value in the variable substitution
    Another option is use the normal BPM for 1: N message flow. The use a simple java mapping that will introduce a dynamic configuration and you can create the file name as you want. the java mapping will be used in the flow of messages from BPM to target system.
    ref: /people/shabarish.vijayakumar/blog/2009/03/26/dynamic-configuration-vs-variable-substitution--the-ultimate-battle-for-the-file-name

  • Extract actual file name from the filepath

    I have a String something like
    String str ="C:\Documents and Settings\abc\Desktop\file_Aug_2007.xls";
    how can i extract the substring file_Aug_2007.xls with or without using io apis
    Regards,
    ivin

    ivinjacob wrote:
    I have a String something like
    String str ="C:\Documents and Settings\abc\Desktop\file_Aug_2007.xls";
    how can i extract the substring file_Aug_2007.xls with or without using io apis
    Regards,
    ivinHi Ivin,
    First, you will need to use double backslashes in your file path; \ is an escape character so for literal strings you have to double them up.
    String str ="C:\\Documents and Settings\\abc\\Desktop\\file_Aug_2007.xls";For the next part, you don't need anything terribly fancy; the backslashes in your file should be plenty to find the filename.
    From the String class, use the substring(int beginIndex, int endIndex), lastIndexOf(String str), and length():
    String sub;
    sub = str.substring(str.lastIndexOf("\\") + 1, str.length()); I hope that helps.
    Thok

  • How to take away the html file name from the view in address bar

    Hi!
    Wen I visit the pages of a site made with muse I see this in the browser address field
    cinomiller.com/index.html
    cinomiller.com/cv.html
    cinomiller.com/contact.html
    (and so forth)
    I would rather just have
    cinomiller.com
    cinomiller.com/cv
    cinomiller.com/contact
    (and so on)
    How is it done?
    Thanks!

    Hello Alejandro,
    Unfortunately there is no option in Muse to remove the .html extension from the pages. However, if you site is hosted on Business Catalyst, you have the option to edit the URL of the page and remove the .html from it.
    But, if your site is hosted somewhere other than Business Catalyst, you would need to contact your hosting provider to help you out to remove the extension from the URL of the pages.
    Hope this information helps.
    Regards,
    Rajan

  • How to get the target file name from an URL?

    Hi there,
    I am trying to download data from an URL and save the content in a file that have the same name as the file on the server. In some way, what I want to do is pretty similar to what you can do when you do a right click on a link in Internet Explorer (or any other web browser) and choose "save target as".
    If the URL is a direct link to the file (for example: http://java.sun.com/images/e8_java_logo_red.jpg ), I do not have any problem:
    URL url = new URL("http://java.sun.com/images/e8_java_logo_red.jpg");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Everything is fine, the file name I get is "e8_java_logo_red.jpg", which is what I expect to get.
    However, if the URL is an indirect link to the file (for example: http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719 , which link to a file named JavaSetup6u18-rv.exe ), the similar code return AutoDL?BundleId=37719 as file name, when I would like to have JavaSetup6u18-rv.exe .
    URL url = new URL("http://javadl.sun.com/webapps/download/AutoDL?BundleId=37719");
    System.out.println("Opening connection to " + url + "...");
    // Copy resource to local file                   
    InputStream is = url.openStream();
    FileOutputStream fos=null;
    String fileName = null;
    StringTokenizer st=new StringTokenizer(url.getFile(), "/");
    while (st.hasMoreTokens())
                    fileName=st.nextToken();
    System.out.println("The file name will be: " + fileName);
    File localFile= new File(System.getProperty("user.dir"), fileName);
    fos = new FileOutputStream(localFile);
    try {
        byte[] buf = new byte[1024];
        int i = 0;
        while ((i = is.read(buf)) != -1) {
            fos.write(buf, 0, i);
    } catch (Throwable e) {
        e.printStackTrace();
    } finally {
        if (is != null)
            is.close();
        if (fos != null)
            fos.close();
    }Do you know how I can do that.
    Thanks for your help
    // JB
    Edited by: jb-from-sydney on Feb 9, 2010 10:37 PM

    Thanks for your answer.
    By following your idea, I found out that one of the header ( content-disposition ) can contain the name to be used if the file is downloaded. Here is the full code that allow you to download locally a file on the Internet:
          * Download locally a file from a given URL.
          * @param url - the url.
          * @param destinationFolder - The destination folder.
          * @return the file
          * @throws IOException Signals that an I/O exception has occurred.
         public static final File downloadFile(URL url, File destinationFolder) throws IOException {
              URLConnection urlC = url.openConnection();
              InputStream is = urlC.getInputStream();
              FileOutputStream fos = null;
              String fileName = getFileName(urlC);
              destinationFolder.mkdirs();
              File localFile = new File(destinationFolder, fileName);
              fos = new FileOutputStream(localFile);
              try {
                   byte[] buf = new byte[1024];
                   int i = 0;
                   while ((i = is.read(buf)) != -1) {
                        fos.write(buf, 0, i);
              } finally {
                   if (is != null)
                        is.close();
                   if (fos != null)
                        fos.close();
              return localFile;
          * Returns the file name associated to an url connection.<br />
          * The result is not a path but just a file name.
          * @param urlC - the url connection
          * @return the file name
          * @throws IOException Signals that an I/O exception has occurred.
         private static final String getFileName(URLConnection urlC) throws IOException {
              String fileName = null;
              String contentDisposition = urlC.getHeaderField("content-disposition");
              if (contentDisposition != null) {
                   fileName = extractFileNameFromContentDisposition(contentDisposition);
              // if the file name cannot be extracted from the content-disposition
              // header, using the url.getFilename() method
              if (fileName == null) {
                   StringTokenizer st = new StringTokenizer(urlC.getURL().getFile(), "/");
                   while (st.hasMoreTokens())
                        fileName = st.nextToken();
              return fileName;
          * Extract the file name from the content disposition header.
          * <p>
          * See <a
          * href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec19.html">http:
          * //www.w3.org/Protocols/rfc2616/rfc2616-sec19.html</a> for detailled
          * information regarding the headers in HTML.
          * @param contentDisposition - the content-disposition header. Cannot be
          *            <code>null>/code>.
          * @return the file name, or <code>null</code> if the content-disposition
          *         header does not contain the filename attribute.
         private static final String extractFileNameFromContentDisposition(
                   String contentDisposition) {
              String[] attributes = contentDisposition.split(";");
              for (String a : attributes) {
                   if (a.toLowerCase().contains("filename")) {
                        // The attribute is the file name. The filename is between
                        // quotes.
                        return a.substring(a.indexOf('\"') + 1, a.lastIndexOf('\"'));
              // not found
              return null;
         }

  • How to delete file names from Adobe Reader list

    How can I delete file names from the Adobe Reader list?  I have deleted the file & it's empty, but deleted file names remain in my list & it's very annoying.  I can't seem to find an option anywhere to delete the file names.

    Thanks for the answer, I will try this & post my results with this method.  I have set the amount to zero, & it seems if I want to put back valid files into my list I first need to find them in another file in my pc, such as documents, open them in Adobe Reader, & then then they will reappear in the Adobe Reader list.  Is this correct?  Thank you!
    This seems to be the case, you need to restore each file you want in your list one by one by accessing them elsewhere on your pc, & then you must open them with Adobe Reader to have files reappear in your Adobe Reader list.  However, this seems to be a tedious process if you only want to delete one obsolete file from your list by first emptying the list & rebuilding it file by file.  It works, but I'm wondering if there is a more sensible & efficient way to do this?

Maybe you are looking for

  • How to use Application Integrator (AI) in EP 710?

    Hi all, I can't find any entry points about application integrator in EP 710, does anyone know how to use it in EP 710? Thanks and regards, Bena

  • Trouble uploading photos with Flash Player on Facebook, even though have lastest version. Help?

    I recently purchased a new laptop with Windows 8 which accordingly has Flash Player already installed. I later went to upload pictures on Facebook only for a pop up message to say that I do not have the latest version installed. I therefore, went on

  • Prior to Purchasing a BE6000

                       Hi, I'm looking to invest in a BE6000 but wanted to get something clear beofre I take the leap, Is there anything else I would need besides the BE6000, POE switches, IP Phones and SIP Trunk proivder? Out main routing device is a So

  • EP+SRM

    HI Experts, We are implementing Portal with SRM. Please tell me what should I do and which points I need to implement as a portal consultant. Thanks a lot in advance.

  • Master data in multiple languages

    Hello All, I have some masters data like vendor ,customer and gl master of 7 countries in multiple languages. Now how to map or maintain all these masters in SAP so tht whenver user login using his regional language like chinese user or french user o