I store my upload file at server0 location.Now i want to display it how?

Hi,
I store my upload file at server0 location. Now i want to display it how it is possible.
Regards,
Gurprit Bhatia

Hi Gurprit,
If you want to open or save the uploaded file on local PC then follow below steps:
1. Take a "FileDownload" UI element
2. Create Resource type value attribute and bind it to resource property of "FileDownload" UI element.
3 Write the below code in wdDoInit() method:
IWDResource resource =
WDResourceFactory.createResource(new FileInputStream(new File("D:\\usr\\sap\\EPD\\JC00\\j2ee\\cluster\\server0", "Test.txt")),
                         "Test.txt",
                         WDWebResourceType.UNKNOWN,
                         true);
Hope this will help you.
Thanks
Sandy

Similar Messages

  • How to store ASO dat file in different location

    Hello Everyone,
    i have a requirement where I need to store the .dat(ASO) file in a location other than the folder where the application artifcats are stored. In BSO, We can right click the database, edit, properties and in Storage tab we can choose where Data and Index files have to be stored. Do we have similar option for ASO too? because, the space we have for the application folders are limited and we have a separate SAN drive for storing data and index file and thats where BSO .pag files are stored. Since our ASO cube is growing I want to move the data to a location where BSO data is stored, i mean to the designated drive for data. Any suggestions will be much appreciated.
    Thanks.

    Yes, ASO has the concept of 'tablespaces'. There are four (default, temp, log and metadata) but you probably just want to move the 'default' and 'temp' tablespaces to your SAN location. Temp will look really small (i.e. empty) until you run a restructure or aggregation and then it'll explode to the size of the default tablespace so it's important not to miss.
    See the section on 'Managing Storage for ASO Databases' here http://docs.oracle.com/cd/E17236_01/epm.1112/esb_dbag/asysadmn.html, or the 'alter tablespace' MaxL command here http://docs.oracle.com/cd/E17236_01/epm.1112/esb_tech_ref/maxl_alttabl.html.
    EDIT: Actually, looking at the documentation, I see that you can't move the metadata or log tablespaces. But you're probably only going to care about 'default' and 'temp' anyway.

  • How to specify the directory in which we want to store the uploaded files

    Hello !!
    I am using apache commonfile upload for uploading my files.I followed the user guide and tried to run a program,but my problem is I am not able to understand as to how to mention the directory in which the uploaded file will be saved..My code is given below :
    package r;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import org.apache.commons.fileupload.*;
    import org.apache.commons.fileupload.servlet.*;
    import org.apache.commons.fileupload.disk.*;
    import org.apache.commons.io.*;
    import java.lang.Exception;
    public class fileupload extends HttpServlet
         public void doGet(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException
                   // Check that we have a file upload request
                  boolean isMultipart = ServletFileUpload.isMultipartContent(request);
                 System.out.println(isMultipart);
                 if (ServletFileUpload.isMultipartContent(request))
                 // Create a factory for disk-based file items
                   FileItemFactory factory = new DiskFileItemFactory();
                   // Create a new file upload handler
                   ServletFileUpload upload = new ServletFileUpload(factory);
                   // Parse the request
                   try {
                               List items= upload.parseRequest(request);               
                             Iterator iter = items.iterator();
                             while (iter.hasNext())
                                   FileItem item = (FileItem) iter.next();                    
                                 if (item.isFormField()) //NORMAL FORM FIELD
                                 String name = item.getFieldName();
                                  String value = item.getString();
                                  System.out.println(value);                                                             
                                  else
                                 String fileName = item.getName();
                                 System.out.println(fileName);
                                    String contentType = item.getContentType();
                                  File saveTo = new File("/info/upload_files/myFile.jpeg");
                             try
                                       item.write(saveTo);
                                       System.out.println("File written" );                    
                             catch(Exception e)
                                         System.out.println("File not written");
                                   // InputStream fs= item.getInputStream();                    
                                   fileName = FilenameUtils.getName(fileName);
                                    System.out.println(fileName);
                        }//end of try
              catch (Exception e) { }
         public void doPost(HttpServletRequest request,HttpServletResponse response)throws ServletException,IOException
                 doGet(request,response);
    The problem is that the control doesn't reach the try statement and I get " File not written" on the console because it enters catch everytime..Please tell me how the path to the directory should be given...Rest of the code is working fine

    No, the problem is that when an Exception is thrown, you ignore it completely and throw away all the information associated with it. That leaves you to guess at what the problem is. So instead of answering your guess at a good question, I'm going to suggest that in all of your catch blocks you put this code:e.printStackTrace();Then you can look at the output in the log file and see what the problem is. Start from there.

  • I moved my podcasts and image files to a subfolder - now images won't display in iTunes

    I moved my podcasts and image files into a subfolder. The podcasts are working OK, but the image file does not display in iTunes anymore.
    The feed is directed through feed burner at http://feeds.feedburner.com/VineyardChurchOfMilan.
    The source xml is at https://www.dropbox.com/sh/rl89sk4lkrn9930/Zm0Jb6C1Hj/Podcast (MilanVineyardChurch.xml)
    The iTunes link is at https://itunes.apple.com/us/podcast/vineyard-church-of-milan/id562567379
    I added "/Podcast/" to the image path url in the <itunes:image> tag in the xml file and updated the path to the xml file in feedburner, but I did not add the <itunes:new-feed-url> again. Do I need to do this to force the iTunes scripts to reread the whole file again? I thought that if the iTunes scripts are reading the feedburner file that they would pick up path changes to the image when they read the feedburner file. The location of the feedburner file has not changed. Only the location of the source xml and the image have changed. Feedburner is working right, and shows the image.

    You have changed the image URL in the 'image' tag but you have not changed it in the 'itunes:image' tag, and that is what is applicable here.
    iTunes is looking for an image at
    http://dl.dropbox.com/u/89406141/MilanVineyardChurch.png
    and not finding one there. When you have amended the tag with the new URL it will probably take some days before the image appears in the Store.
    The new image is apparently at http://dl.dropbox.com/u/89406141/Podcast/MilanVineyardChurch_144.png - this is 144x144 which is inadvisably small for iTunes.
    Although your episodes, which have Feedproxy URLs, are appearing OK, iTunes does not get on at all well with Dropbox and you might be advised to consider hosting your image on an ordinary web server. However, it's possible that it will work once you've amended things.

  • Store a uploaded file of type binary into a java.sql.Blob

    Hi all,
    I try a File-Upload and store the file in a  java.sql.Blob of a MaxDB.
    My Problem is, that I'm not able to import a Model-Attribute of data type byte[]. Further I don't no how to convert the uploaded value attribute of data type binary, in a java.sql.Blob.
    Regards,
    Silvia Hofmann

    http://www.excelsior-usa.com/jet.html
    http://www.ej-technologies.com/products/exe4j/overview.html
    http://jsmooth.sourceforge.net/
    Distributing your Application as an executable JAR file
    Google is your friend.

  • I store all my files on my Gdrive, eventually my Gdrive will fail. How best to back up the Gdrive? Should I replace it every few years?

    What is the best way to ensure I don't loose my images from my gdrive, because eventually it will fail. thank you

    You are quite right, your drive will die, it is just a matter of when.
    Back it up every time you finish a session in Aperture, either using the vault feature, time machine or another third party app.
    Tony

  • I had uploaded picture folders to my iphone, now I want to delete them, how do I do that?

    I had sorted my pictures into multiple folders and I thought I could just uncheck the sync pictures box and it would remove them, but it doesn't.  And I can't even seem to find the folders anywhere to delete them anyway. 

    Well i had some issues when I first updated to os 5.0 where my photo albums were not in the right order. So I unchecked my sync box (basically indicated that I didn't want it to sync), and it didn't remove any of my photos. Then I went back in and rechecked the sync box (which when using iPhoto specifically says "Sync Selected Albums and Events". Then i specifically unchecked all of the events I had initially selected. That resulted in everything getting deleted which is what I wanted.
    Since I'm not familiar with the specific sync process for photos from a PC, not sure what your selection options are, but it seems like it needs to be actually running the sync process in order to either add OR remove photos....
    Hope this helps!

  • Storing uploaded files

    I want to upload files from the client side in my application. I use IBM WebSphere Application Server 6.0. I want to know which would be the best location to store the uploaded files. If I want try use a location outside the server installation folder i get an error. I do not want to store files inside the WebSphere installation folder due to space constraints. Also I don't want to hard code the path as this also gives me portability problems. Please help me.
    Thanks in advance.

    See you have a lot of constraints.
    One you want to store the files locally in hard disk. What I mean is you are not interested to store it in Database.
    Secondly you dont wantr to hardcode the path.
    What I can recommend is a property File Key can hold the path to the File Directory location. This can be loaded static - ly, when the Application loads and then the files can be saved outside the Web Sphere Installation folder whereever you have space.
    This property file can be loosely coupled with the EAR / WAR file to facilitate modifications.
    Things to consider when you are storing files locally outside application server path:
    1. File of same name can be uploaded by different users. You need to take care of NOT overriding the files
    2. If you need to display the files on demand to the User again, you need to have a servlet to read the file back and paint the content.
    Thanks and regards,
    Pazhanikanthan. P

  • Change upload file name with com.oreilly.servlet.MultipartRequest to handle the file upload

    1. when use com.oreilly.servlet.MultipartRequest to handle the file upload, can I change the upload file name .
    2. how com.oreilly.servlet.MultipartReques handle file upload? do it change to byte ?
    what  different?  if I use the following method?
       File uploadedFile = (File) mp.getFile("filename");
                   FileOutputStream fos = new FileOutputStream(filename);
                    byte[] uploadedFileBuf = new byte[(int) uploadedFile.length()];
                   fos.write(data);
                 fos.close();

    My questions are
    1) when use oreilly package to do file upload , it looks like i line of code is enough to store the upload file in the
    file direction.
    MultipartRequest multi =
            new MultipartRequest(request, dirName, 10*1024*1024); // 10MB
    why some example still use FileOutputStream?
    outs = new FileOutputStream(UPLOADDIR+fileName); 
        filePart.writeTo(outs); 
       outs.flush(); 
      outs.close();
    2) can I rename the file name when I use oreilly package?

  • Remove link for uploaded files in application

    Hi all,
    I've been following the tutorial on how to upload and download files in application at http://download-uk.oracle.com/docs/cd/B32472_01/doc/appdev.300/b32469/up_dn_files.htm. I have now created my own table which stores the uploaded files and can download them successfully. I would now like to add the ability to delete these files within the application and was wondering what the best way of doing this was?
    I would like to add another column to the displayed report with a 'Remove file' link for each listed file, which when clicked would delete the file from the table. I've already tried using a similar method to the one used to upload the files (instead of uploading the file, the called procedure deletes it from the table using the specified ID), but this causes the application to display a blank page when the link is clicked, which I dont want (but does delete the file).
    I would appreciate any suggestions.
    Regards,
    Dave

    Dave,
    See the login page:
    http://htmldb.oracle.com/pls/otn/f?p=31517:101
    There are details on how to access the application builder, where you can see how the
    setup of that download, delete, upload application has been done.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Re:How to save an uploaded file in specified folder

    Hi all,
    I am using Jdev 11.1.1.7.0
    i created one form in the page.i created attachments by using inputfile option in component palette.when i run the page it is working.the file is successfully uploaded.but my intension is i want to save the uploaded file in specified location for the particular person.so how can i save this file.can anyone help me out please.
    Thanks,
    G.Shilpa.

    Hi Timo,
    Thanks for the reply.my scenario is i have created one table and one form.i entered some data in it.i used inputfile and save button for attachments.it is working.bt it wont be saved.when i click the person and then upload a file then the file will be stored some particular location for the particular person.means when i reload this page again i click the person it want to show the person how many pages uploaded.i created one bean class in save button and inputfile.my code is
    public class FileUpload {
        private List<UploadedFile> uploadedFile;
        public FileUpload() {
            super();
        public void setUploadedFile(List<UploadedFile> uploadedFile) {
            this.uploadedFile = uploadedFile;
        public List<UploadedFile> getUploadedFile() {
            return uploadedFile;
        public void saveUploadedFiles(ActionEvent actionEvent) {
            // Add event code here...
            List<UploadedFile> files = this.getUploadedFile();
            if (files != null) {
                for (int i = 0; i < files.size(); i++) {
                    System.out.println(files.get(i).getFilename());
    if anything goes wrong can u please provide the code.
    Thanks,
    G.Shilpa.

  • How can i change upload file name?

    hi
    I performed a upload Jsp page by OJSP file access in jdeveloper,and it can upload file!
    but i want to change uplaod file name!
    How can i do?
    Any help will be appreciated!
    Thanks
    Jiawei Zhao

    My questions are
    1) when use oreilly package to do file upload , it looks like i line of code is enough to store the upload file in the
    file direction.
    MultipartRequest multi =
            new MultipartRequest(request, dirName, 10*1024*1024); // 10MB
    why some example still use FileOutputStream?
    outs = new FileOutputStream(UPLOADDIR+fileName); 
        filePart.writeTo(outs); 
       outs.flush(); 
      outs.close();
    2) can I rename the file name when I use oreilly package?

  • Unable to pick up the file from Receive Location

    BizTalk is  unable to pick up the files from receive location.
    My admin console is working so slow.
    It is showing the problem of snap-in as follows:
    I have checked all my receive location and its masking,it is working fine.
    Actually it is working fine in dev server(snap-in problem is not occuring in dev server ) but when I import MSI and binding in UAT server.
    It is not picking up the file from receive location.
    I want to know one more thing :if my message box database is not working fine,will it receive the files from receive location.
    Prakash

    For files not received by receive location. If the Receive Location is still enabled but files are not processed by Receive Location, then check whether the host instance  configured with your receive location is running. If the host instance is in
    running state, restart the host instance and try.
    Regarding the error in the admin console as shown in the image, people started to see this issue with admin console from BizTalk 2009 onwards. This happens in cases like you have done some activity with console and before its been refreshed it you do more
    activities like expanding the node you will see this error. Sometimes WMI is bit slowly to refresh your admin console screen. Just wait for few seconds untill the WMI screen is rendered completely. Ensure you have all the cumulative updates installed for your
    version of BizTalk and also ensure the service pack for your OS is updated.
    Obviously if message box is not working, files will not be received/processed. But if message box is not in healthy state this would affect all other application not just one and in-fact it would affect entire BizTalk not just Receive Locations.
    To start analysing this file not been processed by Receive Location, start with checking the host instance as mentioned.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Display uploaded file on JSP page

    Hi All,
    I want to display uploaded file in JSP.
    Initially I am displaying File Name after saving the file & click on edit link.
    i.e on JSP Page I have File Upload component & save button.With that save button I am saving my file to databse.
    So when I click on edit link I am getting that file name from Databse then I am displaying it.
    But now I want to display uploaded file name on JSP page before saving to databse.i.e I will have browse & Upload button.When I click on browse button I will open window from where I will select file.
    This is working fine as,<x:inputFileUpload id="uploadfile" value="#{errorLotBean.file}" storage="file"></x:inputFileUpload>
    But when I click on upload button that uploaded file should be displyed there only.Can anyone please tell me how to do this ?
    Thanks
    Sandip

    Thanks a lot Siefert,
    I tried the way mentioned in URL.
    But what if I want to display all uploaded file on my screen.
    i.e. If user click on browse & select File A then click on upload button.
    (Here the File A will be displayed) with code
    <h:outputtext value="#{benaName.file.name}"
    But what if after displaying File A if user decide to upload another file File B.
    How to display that ?
    with <h:outputtext value="#{benaName.file.name}" its dispalying one file only.
    Thanks
    Sandip

  • I want to display a video file on Flash without ENCODING IT! HELP ME PLEASE

    Hi everyone! I am using Macromedia Flash 8 and now I want to
    display a video file (avi formatted, for example) on flash . But
    the main idea is that I don't want to encode this file into *.flv
    file, I want to display it directly. Please, any one , can you help
    me to find a solution?!
    thanks very much

    Nope, I have tried it:
    page_jep.setPage("file://c:\\index.htm");Gives me:
    java.net.UnknownHostException: c

Maybe you are looking for