Browse and upload a file

Hi , i'm bulding an application using swing , what i'm having is 2 textfield and 2 buttons . and now what i want is , when i click the button1 i should be able to browse through my machine and should be able to load a file to the application .
The same way like a notepad will be loading a TXT file , can u please help me .
Thanks
Peeths

reading the file to the text are is not a problem ,
but the problem comes wen i want to surf through the
machine and wanna locate the file to get the file
name .Thus why Camickr was pointing you to the link on JFileChoosers. For
more (technical) information on this
http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JFileChooser.html
Be sure you you have an understanding of readers (eg
BufferedReader* and FileReader**) as well as using the File*** classes,
as you more likely will be using them.
Reformer!
*..... http://java.sun.com/j2se/1.4.2/docs/api/java/io/BufferedReader.html
**... http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileReader.html
*** . http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html

Similar Messages

  • Browse and upload file - Forms(6i)

    Hi Friends,
    How to enable users to browse and select a file from their local machine in a D2K forms (6i) and upload to the database unix directory
    Thanks
    Ramya

    Hi Friends,
    my exact requirement -
    I have a form with 2 buttons -
    First Button -
    I have to create a external table,the file that is associated with external table is browsed in the form through button,after the file is browsed ,the same file has to be placed in unix directory.
    Second button -
    This button is to execute a packaged procedure which will be using the data from the file associated with the external table that we placed in the unix directory ( which i explained under button1)
    Thanks
    Ramya

  • Browse and Upload

    Hey guys,
    Im trying to create a browse and upload interface on my website but to no avail. Creating the buttons worked; but making them do what they are suppose to do doesnt. For example, i created a Browse and Upload button. The browse button would search for the file, but the upload button do nothing at all. How do i enable upload to work? Can it be done by html coding? Is it some settings that must be enabled on the server itself?
    Thanks!

    I don't think I quite understand what you are trying to do? You created a browse function, do you mean search function so you can search for something on your website? Also is the upload function so people can upload content to your server?
    To get the upload function to work you will need a lot more than just simple html. Html is not a programming language it is a markup language that just tells the browse what to show. You would need PHP or JS to get an upload function to work with your server.
    I bet there are a ton of tutorials on youtube. Try searching for 'how to create an upload function on my website'.
    This is beyond what Muse can do. I hope I understood what you were asking. If not please give me more details.

  • Browsing and uploading a directory using jsp/jsf

    Hello to all,
    We can browse an upload a file to the server, but how can we browse the directory and upload it?
    Thanks in advance.

    Remember that at the end of the day, JSP results in an HTML page so you are subject to the same restrictions as a plain ol' HTML page. So the short answer is you can't.
    You can create a (signed) java applet and embed that on the page to possibly do what you want.
    HTH.

  • Isolated: WEP is messing up my web browsing and uploads. Why?

    My web browsing and uploads keep "hanging" when accessing my AP Extreme wirelessly.
    A straight HTML downloads fine. But a page that has code that talks back to the server (e.g. a Google docs page) hangs. Also it seems that javascript navigation that sends info back up to the server also hangs.
    I just discovered after resetting my base station, this only happens when I use WEP encryption.
    I don't want to leave my network open. How do I fix this?

    If you search you'll find lots of complaints about this very problem. I'm not sure that a single, specific solution was ever reported.
    I suffered from this problem also. To me it seemed to be related to the fact that I had the "Create closed network" option selected.
    It also seemed that I had to make sure I entered the IP address of my router, but in my case that is because the AEBNs are not providing my DHCP service - my DSL router is.
    There is also an Airport Extreme update out on Apple's web site that may help.
    Whatever the problem(s), in my case turning off "Create closed network" and entering my router's IP address in the AEBN configuration seemed to solve the issue.
    And, by the way, it was Google that I was having a problem with, and Google that everyone else was having a problem with!
    Good luck.

  • File browsing and showing selected files in a datagrid? i'm missing something small... i hope

    I am currently allowing the user to browse and select multiple files. I'd like to display the selected files in a datagrid. Here's my code. What am I missing?
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                         xmlns:s="library://ns.adobe.com/flex/spark"
                                                         xmlns:mx="library://ns.adobe.com/flex/mx">
      <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
      </fx:Declarations>
      <fx:Script>
                        <![CDATA[
                                  import mx.collections.ArrayCollection;
                                  public var Files:File;
                                  [Bindable]
                                  public var arrUploadFiles:Array;
                                  private function init():void
                                            arrUploadFiles = new Array()
                                            Files = new File(); 
                                            Files.addEventListener(FileListEvent.SELECT_MULTIPLE,onSelect_multiple_files); 
                                            Files.browseForOpenMultiple("Select Files to Send!!"); 
                                  public function onSelect_multiple_files(f_evt:FileListEvent):void
                                            for each(var tempF:File  in f_evt.files){ 
                                                      tempF.load(); 
                                                      arrUploadFiles.push(tempF);
                                                      trace (tempF.nativePath);
                        ]]>
      </fx:Script>
              <s:Button x="259" y="454" label="Browse for Files" click="init()"/>
              <s:DataGrid x="159" y="211" requestedRowCount="4">
      <s:columns>
      <s:ArrayList>
                                            <s:GridColumn dataField="dataField1" headerText="Column 1"></s:GridColumn>
                                            <s:GridColumn dataField="dataField2" headerText="Column 2"></s:GridColumn>
                                            <s:GridColumn dataField="dataField3" headerText="Column 3"></s:GridColumn>
      </s:ArrayList>
      </s:columns>
      <s:typicalItem>
                                  <fx:Object dataField1="Sample Data" dataField2="Sample Data" dataField3="Sample Data"></fx:Object>
      </s:typicalItem>
      <s:ArrayList>
                                  <fx:Object dataField1="data1" dataField2="data1" dataField3="data1"></fx:Object>
                                  <fx:Object dataField1="data2" dataField2="data2" dataField3="data2"></fx:Object>
                                  <fx:Object dataField1="data3" dataField2="data3" dataField3="data3"></fx:Object>
                                  <fx:Object dataField1="data4" dataField2="data4" dataField3="data4"></fx:Object>
      </s:ArrayList>
      </s:DataGrid>
    </s:WindowedApplication>

    Arrays do not send out change events so the DG doesn’t know you pushed things onto it.  If you used the DG’s dataProvider it will have wrapped the array in an ArrayCollection and will notice the changes.  There is a FileSystemDataGrid component by the way.

  • Reprocessing RTLOG in RESA and uploading posu file in RMS

    Hi All,
    We processed the RTLOGS of one Business Day(exp:01-01-18). in RESA and uploaded POSU file in RMS.Later we found that some transactions were missing. Now we generated another RTLOG for that day(complete business day with all data in that).is there any procedure to reprocess the RTLOG in RESA and posu file in RMS.
    Regards
    suresh

    I guess you will have to deal in a manual way with the overlap between the two files, i.e. remove from the second RTLOG file the transactions that were already loaded in the first run. Then use the standard ReSA and RMS upload processes to add these new transactions.

  • Help~how can I download and upload pdf file in simple solution

    I am new doing Portal.
    I want to create a page which can provide download pdf file function and other page which can provide upload pfg file function.
    I created a link to download file, and implemented uploading files by access the file directory.
    Can this solution work in Portal?
    I've tried, but I couldn't access file directory through web_dav.
    Anyone can give me some suggestion?

    You can only install apps (programs) via the App Store app on your iPad, or by downloading them via iTunes store on your computer and then syncing them to your  iPad - you can't download and install programs from the internet via a browser, they are not compatible with the iPad.

  • Download and upload of file to server dir (AL11)

    Hello,
    I have a custom program that is downloading files from application server directory (they are like templates) to user local pc. User is then modifying such files and finally upload them in another AS directory.
    The program is currently making use of FM's C13Z_FILE_DOWNLOAD_BINARY and  C13Z_FILE_UPLOAD_BINARY.
    There was no problem until hot packages have been implemented: now such FM's are returning an error saying:
    Internal program error; (YDOWNLOAD SAPLC13Z 0 C13Z_RAWDATA_WRITE)
    When in debug, it appears that the FM C13Z_RAWDATA_WRITE (called by the above mentioned FM's) is checking the calling program (sy-cprog) and if this latter is not within a list of standard programs (hardcoded), then the error is thrown.
    My question is: Is there another way to download and upload files without such error? Could you please share the code?
    Thanks a lot for help and suggestions!
    Best regards,
    JFlanders

    Hello,
    Please see note   1809258 - Internal program error; ( <program name> SAPLC13Z 0 C13Z_RAWDATA_READ )
    A possibile solution is to use cl_gui_frontend_services class methods like gui_download and gui_upload, for instance:
    TYPES: t_line(1) type x.
    DATA: i_tab TYPE STANDARD TABLE OF t_line,
        i_wa(1) type x.
    OPEN DATASET lv_file_appl FOR INPUT IN BINARY MODE.
    DO.
      CLEAR i_wa.
      READ DATASET lv_file_appl INTO i_wa.
      IF SY-SUBRC <> 0.
        EXIT.
      ELSE.
        APPEND i_wa TO i_tab.
      ENDIF.
    ENDDO.
    CLOSE DATASET lv_file_appl.
    DATA: lv_fn TYPE string.
    lv_fn = lv_file_name.
    CALL METHOD cl_gui_frontend_services=>gui_download
      EXPORTING
        filename                = lv_fn
        filetype                = 'BIN'
        append                  = ' '
      CHANGING
        data_tab                = i_tab
      EXCEPTIONS
        file_write_error        = 1
        no_batch                = 2
        gui_refuse_filetransfer = 3
        invalid_type            = 4
        no_authority            = 5
        unknown_error           = 6
        header_not_allowed      = 7
        separator_not_allowed   = 8
        filesize_not_allowed    = 9
        header_too_long         = 10
        dp_error_create         = 11
        dp_error_send           = 12
        dp_error_write          = 13
        unknown_dp_error        = 14
        access_denied           = 15
        dp_out_of_memory        = 16
        disk_full               = 17
        dp_timeout              = 18
        file_not_found          = 19
        dataprovider_exception  = 20
        control_flush_error     = 21
        OTHERS                  = 24.
    * old functioanlity
    *    CALL FUNCTION 'C13Z_FILE_DOWNLOAD_BINARY'
    *      EXPORTING
    *        i_file_front_end       = lv_file_name
    *        i_file_appl            = lv_file_appl
    *        i_file_overwrite       = 'X'
    ** IMPORTING
    **    E_FLG_OPEN_ERROR          =  false
    **    E_OS_MESSAGE              =  lv_message
    *    EXCEPTIONS
    *      fe_file_open_error       = 1
    *      fe_file_exists           = 2
    *      fe_file_write_error      = 3
    *      ap_no_authority          = 4
    *      ap_file_open_error       = 5
    *      ap_file_empty            = 6
    *      OTHERS                   = 7
    This is for the download, similarly should be done for the upload.
    Hope this could help. Let me know if further details are needed.
    Thank you and bye,
    Flavio

  • CSOM code in C # to download and upload multiple files from/to sharepoint library

    Hi All,
    Please help me I want to first download all my files from sharepoint library to my local folder using CSOM code .
    Once downloading is completed I want to upload those files in another library .
    I have done same thing using web services but need to do by CSOM now.
    Thanks please provide code of peice
    sudhanshu sharma Do good and cast it into river :)

    By using below code I am downloading multiple documents and uploading same doc to sharepoint while uploading i want to updat emetadata of source library to destination library ..
    I am able to do so but want to do now for dateandTime+metadata column as well please can you check my approach and let me know tht how to do for such kind of columns-
    FileProperty.cs
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    namespace ST_9569f2fe51bd4137bb31c38b3d46455d
    class FileProperty
    public string Title; //single line of text
    public string Description; //Multiple line of text
    public string DocumentType; //choice type
    public string DocumentCategory; //Choice type
    public string DocumentNumber; //Single line of text
    // public string DocumentStatus; //Choice
    public string DocumentTitle; //single line of text
    // public string CrossReference; //Multipleline type
    //public DateTime PublishDate; //DateAndTime Type column
    /// <summary>
    /// Get the SP Document Column internal name and thier respective values
    /// in key -value pair.
    /// </summary>
    /// <returns>The List of KeyValuePair</returns>
    public List<KeyValuePair<string, string>> getColumnKeyValueListProducts()
    {//Target Columns
    List<KeyValuePair<string, string>> columnKeyValuePairList = new List<KeyValuePair<string, string>>();
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Title", Title));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Description0", Description));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Type", DocumentType));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Category", DocumentCategory));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Number", DocumentNumber));
    //columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Status", DocumentStatus));
    columnKeyValuePairList.Add(new KeyValuePair<string, string>("Document_x0020_Title", DocumentTitle));
    //columnKeyValuePairList.Add(new KeyValuePair<string, string>("Cross%5Fx0020%5FReference", CrossReference));
    // columnKeyValuePairList.Add(new KeyValuePair<string, string>("Publish_x0020_Date", PublishDate));
    return columnKeyValuePairList;
    /* public List<KeyValuePair<string, DateTime>> getColumnKeyValueListProductsforDatenTime()
    //Target Columns
    List<KeyValuePair<string, DateTime>> columnKeyValuePairListdt = new List<KeyValuePair<string, DateTime>>();
    columnKeyValuePairListdt.Add(new KeyValuePair<string, DateTime>("Publish_x0020_Date", PublishDate));
    return columnKeyValuePairListdt;
    #region Help: Introduction to the script task
    /* The Script Task allows you to perform virtually any operation that can be accomplished in
    * a .Net application within the context of an Integration Services control flow.
    * Expand the other regions which have "Help" prefixes for examples of specific ways to use
    * Integration Services features within this script task. */
    #endregion
    #region Namespaces
    using System;
    using System.Data;
    using Microsoft.SqlServer.Dts.Runtime;
    using System.Windows.Forms;
    using Microsoft.SharePoint.Client;
    using System.IO;
    using System.Net;
    using System.Collections.Generic;
    //using System.IO;
    #endregion
    namespace ST_9569f2fe51bd4137bb31c38b3d46455d
    /// <summary>
    /// ScriptMain is the entry point class of the script. Do not change the name, attributes,
    /// or parent of this class.
    /// </summary>
    [Microsoft.SqlServer.Dts.Tasks.ScriptTask.SSISScriptTaskEntryPointAttribute]
    public partial class ScriptMain : Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
    #region Help: Using Integration Services variables and parameters in a script
    /* To use a variable in this script, first ensure that the variable has been added to
    * either the list contained in the ReadOnlyVariables property or the list contained in
    * the ReadWriteVariables property of this script task, according to whether or not your
    * code needs to write to the variable. To add the variable, save this script, close this instance of
    * Visual Studio, and update the ReadOnlyVariables and
    * ReadWriteVariables properties in the Script Transformation Editor window.
    * To use a parameter in this script, follow the same steps. Parameters are always read-only.
    * Example of reading from a variable:
    * DateTime startTime = (DateTime) Dts.Variables["System::StartTime"].Value;
    * Example of writing to a variable:
    * Dts.Variables["User::myStringVariable"].Value = "new value";
    * Example of reading from a package parameter:
    * int batchId = (int) Dts.Variables["$Package::batchId"].Value;
    * Example of reading from a project parameter:
    * int batchId = (int) Dts.Variables["$Project::batchId"].Value;
    * Example of reading from a sensitive project parameter:
    * int batchId = (int) Dts.Variables["$Project::batchId"].GetSensitiveValue();
    #endregion
    #region Help: Firing Integration Services events from a script
    /* This script task can fire events for logging purposes.
    * Example of firing an error event:
    * Dts.Events.FireError(18, "Process Values", "Bad value", "", 0);
    * Example of firing an information event:
    * Dts.Events.FireInformation(3, "Process Values", "Processing has started", "", 0, ref fireAgain)
    * Example of firing a warning event:
    * Dts.Events.FireWarning(14, "Process Values", "No values received for input", "", 0);
    #endregion
    #region Help: Using Integration Services connection managers in a script
    /* Some types of connection managers can be used in this script task. See the topic
    * "Working with Connection Managers Programatically" for details.
    * Example of using an ADO.Net connection manager:
    * object rawConnection = Dts.Connections["Sales DB"].AcquireConnection(Dts.Transaction);
    * SqlConnection myADONETConnection = (SqlConnection)rawConnection;
    * //Use the connection in some code here, then release the connection
    * Dts.Connections["Sales DB"].ReleaseConnection(rawConnection);
    * Example of using a File connection manager
    * object rawConnection = Dts.Connections["Prices.zip"].AcquireConnection(Dts.Transaction);
    * string filePath = (string)rawConnection;
    * //Use the connection in some code here, then release the connection
    * Dts.Connections["Prices.zip"].ReleaseConnection(rawConnection);
    #endregion
    /// <summary>
    /// This method is called when this script task executes in the control flow.
    /// Before returning from this method, set the value of Dts.TaskResult to indicate success or failure.
    /// To open Help, press F1.
    /// </summary>
    public void Main()
    // TODO: Add your code here
    //Unpublished lib used to download files from sharepoint to local and Published library for uploading files from local to sharepoint
    //var srcFolderUrl = "http://ui3dats011x:2015/sites/techunits/UnPublished%20Doc/Forms/AllItems.aspx";
    //var destFolderUrl = "http://ui3dats011x:2015/sites/techunits/Published%20Documents/Forms/AllItems.aspx";
    using (var ctx = new ClientContext("http://ui3dats011x:2015/sites/techunits/"))
    try
    List LibraryName = ctx.Web.Lists.GetByTitle("Unpublished Doc");
    List LibraryName1 = ctx.Web.Lists.GetByTitle("Published Documents");
    ctx.Load(LibraryName1.RootFolder);
    ctx.Load(LibraryName);
    ctx.ExecuteQuery();
    CamlQuery camlQuery = new CamlQuery();
    //Used this caml query for filtering
    camlQuery.ViewXml = @"<View><Query><Where><Eq><FieldRef Name='Document_x0020_Type'/><Value Type='Choice'>Technical Unit</Value></Eq></Where></Query></View>";
    Microsoft.SharePoint.Client.ListItemCollection listItems = LibraryName.GetItems(camlQuery);
    ctx.Load<Microsoft.SharePoint.Client.ListItemCollection>(listItems);
    ctx.ExecuteQuery();
    string filename;
    FileInformation fileInfo;
    System.IO.FileStream outputStream;
    Dictionary<string, string> itemmetadata = new Dictionary<string, string>();
    foreach (var item in listItems)
    if (itemmetadata.Count > 0)
    itemmetadata.Clear();
    ctx.Load(item);
    ctx.ExecuteQuery();
    ctx.Load(item.File);
    ctx.ExecuteQuery();
    filename = item.File.Name;
    foreach (KeyValuePair<string, object> metaval in item.FieldValues.)
    string metavalue = Convert.ToString(metaval.Value);
    //if(String.IsNullOrEmpty(metaval.Value.ToString()))
    if (!(String.IsNullOrEmpty(metavalue)))
    itemmetadata.Add(metaval.Key, metaval.Value.ToString());
    else
    itemmetadata.Add(metaval.Key, "");
    fileInfo = Microsoft.SharePoint.Client.File.OpenBinaryDirect(ctx, item.File.ServerRelativeUrl.ToString());
    outputStream = new FileStream(@"C:\Users\jainruc\Desktop\Sudhanshu\ComDownload\" + filename, FileMode.Create, FileAccess.Write);
    fileInfo.Stream.CopyTo(outputStream);
    outputStream.Dispose();
    outputStream.Close();
    //Uploading
    string srcpath = @"C:\Users\jainruc\Desktop\Sudhanshu\ComDownload\";
    string siteName = @"http://ui3dats011x:2015/sites/techunits/";
    string docLibraryName = @"http://ui3dats011x:2015/sites/techunits/Published%20Documents/Forms/AllItems.aspx";
    UploadFile(srcpath, siteName, docLibraryName, itemmetadata,filename);
    }//End of try
    catch (Exception ex)
    Dts.TaskResult = (int)ScriptResults.Success;
    public void UploadFile(string srcpath, string siteName, string docLibraryName,Dictionary<string,string> metavalue,string filename)
    using (ClientContext ctx = new ClientContext("http://ui3dats011x:2015/sites/techunits/"))
    try
    List LibraryName1 = ctx.Web.Lists.GetByTitle("Published Documents");
    ctx.Load(LibraryName1.RootFolder);
    ctx.Load(LibraryName1);
    ctx.ExecuteQuery();
    ctx.Credentials = new NetworkCredential("jainfgfgh", "Pashg8878", "mydomain");
    //Loop for getting all files one by one
    using (var fs = new FileStream(String.Concat(srcpath,"/",filename), FileMode.OpenOrCreate))
    string fileUrl = String.Format("{0}/{1}", LibraryName1.RootFolder.ServerRelativeUrl, filename);
    Microsoft.SharePoint.Client.File.SaveBinaryDirect(ctx, fileUrl, fs, true);
    UpdateMetadata(fileUrl,ctx,metavalue);
    //End of looping
    }//End of try block
    catch (Exception ex)
    }//End of Using
    }//End of function
    public void UpdateMetadata(string uploadedfileurl,ClientContext ctx,Dictionary<string,string> mvalue)
    Microsoft.SharePoint.Client.File uploadedfile = ctx.Web.GetFileByServerRelativeUrl(uploadedfileurl);
    //create an object of the class holding all the properties of the document
    ctx.Load(uploadedfile);
    ctx.ExecuteQuery();
    FileProperty fileProperty = new FileProperty();
    fileProperty.Description = mvalue["Description0"];
    fileProperty.Title = mvalue["Title"];
    fileProperty.DocumentType = mvalue["Document_x0020_Type"];
    fileProperty.DocumentCategory = mvalue["DocumentCategory"];
    fileProperty.DocumentNumber = mvalue["DocumentNumber"];
    fileProperty.DocumentTitle = mvalue["DocumentTitle"];
    //fileProperty.PublishDate = Convert.ToDateTime(mvalue["PublishDate"]);
    // fileProperty.DocumentStatus = mvalue["DocumentStatus"];
    List<KeyValuePair<string, string>> columnKeyValueList;
    //create a list of item need to be updated or added to sharepoint library
    List<FileProperty> propertyList = new List<FileProperty>();
    propertyList.Add(fileProperty);
    columnKeyValueList = fileProperty.getColumnKeyValueListProducts();
    ListItem item = uploadedfile.ListItemAllFields;
    foreach (KeyValuePair<string, string> metadataitem in columnKeyValueList)
    item[metadataitem.Key.ToString()] = metadataitem.Value.ToString();
    //item["Title"] = uploadedfile.Title;
    item.Update();
    ctx.Load(item);
    ctx.ExecuteQuery();
    #region ScriptResults declaration
    /// <summary>
    /// This enum provides a convenient shorthand within the scope of this class for setting the
    /// result of the script.
    /// This code was generated automatically.
    /// </summary>
    enum ScriptResults
    Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success,
    Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
    #endregion
    sudhanshu sharma Do good and cast it into river :)

  • Corrupt email attachments and uploading of files

    Hi all.
    I've been having this problem for a few weeks now but just spoken to BT and they told me the line/connection is fine and they cannot help me any further.  I had read that it could be noise or static on the line but according to BT this is not the case.
    My problems are occuring when I send email attachments via Mail, they almost always are being corrupted when the recipient receives them.  Also, when I upload amended website files via FTP, quite a few of the graphics end up corrupt:  Images display as half an image and half grey or they can display as small section of the image and the rest being a block of colourful noise.
    I'm really at the end of my tether with this one, not only does it happen on my MacPro, it also happens on my MacBook Pro
    I'd be really grateful of any help/suggestions from anyone please.
    Many thanks
    Mark

    As said you'd have to transfer your file somehow to the database server; you could use ftp or standard windows shares for that. After you uploaded your file you could use dbms_lob to process your file and insert it into the database: http://docs.oracle.com/cd/B19306_01/appdev.102/b14258/d_lob.htm#ARPLS020
    Or you could use BFILES to store pointers of your files in the table:
    http://www.orafaq.com/wiki/BFILE
    The other way round you'd simply use ftp or what ever else to download those files to the client and display them with host with the associated program. Bfiles would have the benefit that the files are not stored as blobs in the database but on the filesystem which would spare you the writing of a temporary file to transfer it to the client (and reading it with dbms_lob when transfering it to the server) as the file resides on the file system of the database server.
    cheers

  • Steps to prepare and upload  excel  files data to r/3?

    Hi abap experts,
    We have brand new installed ECC system somehow configured but with no master or transaction data loaded .It is new  empty system....We also have some legacy data in excel files...We want to start loading some data into the SAP sandbox step by step and to see how they work...test some transactions see if the loaded data are good etc initial tests.
    Few questions here are raised:
    -Can someone tell me what is the process of loading this data into SAP system?
    -Should this excel file must me reworked prepared somehow(fields, columns etc) in order to be ready for upload to SAP??
    -Users asked me how to prepared their legacy excel files so they can be ready in SAP format for upload.?Is this an abaper  job or it is a functional guy job?
    -Or should the excel files be converted to .txt files and then imported to SAP?Does it really make some difference if files are in excel or .txt format?
    -Should the Abaper determine the structure of those excel file(to be ready for upload ) and if yes,  what are the technical rules here ?
    -What tools should be used for this initial data loads? CATT , Lsmw , batch input or something else?
    -At which point we should test the data?I guess after the initial load?
    -What tools are used in all steps before...
    -If someone can provide me with step by step scenario or guide of loading some kind of initial  master data - from .xls file alignment  to the real upload  - this will be great..
    You can email me  some upload guide or some excel/txt file examples and screenshots documents to excersize....Email: [email protected]
    Your help is appreciated it.!
    Jon

    Depends on data we upload the data from file to R/3 .
    If it is regular updation then we used to get the data from application server files to R/3 since local file updation we can not set up background processing..
    If it is master data upload and that to one time upload then we use presenation server files to SAP R/3..
    See the simple example to upload the data to on master custom table from XLS File
    Program    : ZLWMI151_UPLOAD(Data load to ZBATCH_CROSS_REF Table)
    Type       : Upload program
    Author     : Seshu Maramreddy
    Date       : 05/16/2005
    Transport  : DV3K919574
    Transaction: None
    Description: This program will get the data from XLS File
                 and it upload to ZBATCH_CROSS_REF Table
    REPORT ZLWMI151_UPLOAD no standard page heading
                           line-size 100 line-count 60.
    *tables : zbatch_cross_ref.
    data : begin of t_text occurs 0,
           werks(4) type c,
           cmatnr(15) type c,
           srlno(12) type n,
           matnr(7) type n,
           charg(10) type n,
           end of t_text.
    data: begin of t_zbatch occurs 0,
          werks like zbatch_cross_ref-werks,
          cmatnr like zbatch_cross_ref-cmatnr,
          srlno like zbatch_cross_ref-srlno,
          matnr like zbatch_cross_ref-matnr,
          charg like zbatch_cross_ref-charg,
          end of t_zbatch.
    data : g_repid like sy-repid,
           g_line like sy-index,
           g_line1 like sy-index,
           $v_start_col         type i value '1',
           $v_start_row         type i value '2',
           $v_end_col           type i value '256',
           $v_end_row           type i value '65536',
           gd_currentrow type i.
    data: itab like alsmex_tabline occurs 0 with header line.
    data : t_final like zbatch_cross_ref occurs 0 with header line.
    selection-screen : begin of block blk with frame title text.
    parameters : p_file like rlgrap-filename obligatory.
    selection-screen : end of block blk.
    initialization.
      g_repid = sy-repid.
    at selection-screen on value-request for p_file.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                PROGRAM_NAME = g_repid
           IMPORTING
                FILE_NAME    = p_file.
    start-of-selection.
    Uploading the data into Internal Table
      perform upload_data.
      perform modify_table.
    top-of-page.
      CALL FUNCTION 'Z_HEADER'
      EXPORTING
        FLEX_TEXT1       =
        FLEX_TEXT2       =
        FLEX_TEXT3       =
    *&      Form  upload_data
          text
    FORM upload_data.
      CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
           EXPORTING
                FILENAME                = p_file
                I_BEGIN_COL             = $v_start_col
                I_BEGIN_ROW             = $v_start_row
                I_END_COL               = $v_end_col
                I_END_ROW               = $v_end_row
           TABLES
                INTERN                  = itab
           EXCEPTIONS
                INCONSISTENT_PARAMETERS = 1
                UPLOAD_OLE              = 2
                OTHERS                  = 3.
      IF SY-SUBRC <> 0.
        write:/10 'File '.
      ENDIF.
      if sy-subrc eq 0.
        read table itab index 1.
        gd_currentrow = itab-row.
        loop at itab.
          if itab-row ne gd_currentrow.
            append t_text.
            clear t_text.
            gd_currentrow = itab-row.
          endif.
          case itab-col.
            when '0001'.
              t_text-werks = itab-value.
            when '0002'.
              t_text-cmatnr = itab-value.
            when '0003'.
              t_text-srlno = itab-value.
            when '0004'.
              t_text-matnr = itab-value.
            when '0005'.
              t_text-charg = itab-value.
          endcase.
        endloop.
      endif.
      append t_text.
    ENDFORM.                    " upload_data
    *&      Form  modify_table
          Modify the table ZBATCH_CROSS_REF
    FORM modify_table.
      loop at t_text.
        t_final-werks = t_text-werks.
        t_final-cmatnr = t_text-cmatnr.
        t_final-srlno = t_text-srlno.
        t_final-matnr = t_text-matnr.
        t_final-charg = t_text-charg.
        t_final-erdat = sy-datum.
        t_final-erzet = sy-uzeit.
        t_final-ernam = sy-uname.
        t_final-rstat = 'U'.
        append t_final.
        clear t_final.
      endloop.
      delete t_final where werks = ''.
      describe table t_final lines g_line.
      sort t_final by werks cmatnr srlno.
    Deleting the Duplicate Records
      perform select_data.
      describe table t_final lines g_line1.
      modify zbatch_cross_ref from table t_final.
      if sy-subrc ne 0.
        write:/ 'Updation failed'.
      else.
        Skip 1.
        Write:/12 'Updation has been Completed Sucessfully'.
        skip 1.
        Write:/12 'Records in file ',42 g_line .
        write:/12 'Updated records in Table',42 g_line1.
      endif.
      delete from zbatch_cross_ref where werks = ''.
    ENDFORM.                    " modify_table
    *&      Form  select_data
          Deleting the duplicate records
    FORM select_data.
      select werks
             cmatnr
             srlno from zbatch_cross_ref
             into table t_zbatch for all entries in t_final
             where werks = t_final-werks
             and  cmatnr = t_final-cmatnr
             and srlno = t_final-srlno.
      sort t_zbatch by werks cmatnr srlno.
      loop at t_zbatch.
        read table t_final with key werks = t_zbatch-werks
                                    cmatnr = t_zbatch-cmatnr
                                    srlno = t_zbatch-srlno.
        if sy-subrc eq 0.
          delete table t_final .
        endif.
        clear: t_zbatch,
               t_final.
      endloop.
    ENDFORM.                    " select_data
    and also you can use .txt file upload using Function module - GUI_UPLOAD
    if it is application server then use open datset command.
    Thanks
    Seshu

  • Browse and handle jar files?

    I´m going to make a little app to help some morons I know. Pretty much what I want it to do is to make you able to browse files on your HDD and then move them into a .jar file. I know terminal commands for this but is there a way to make it really easy for my friends.
    I dunno if this helps but when I do it thought terminal I first unarchive the .jar, change content and then compress it and move it back.
    Is this possible?

    I still don't think it's good for morons to create .jar files...
    set javrfile to quoted form of (POSIX path of (choose file with prompt ".jar file:" of type {"jar"}))
    set filestoadd to choose file with prompt "files to add:" with multiple selections allowed
    set filestoadd_unixpaths to {}
    repeat with filetoadd in filestoadd
    set filetoadd to quoted form of (POSIX path of filetoadd)
    set filestoadd_unixpaths to filestoadd_unixpaths & filetoadd
    end repeat
    set AppleScript's text item delimiters to " "
    set filestoadd_unixpaths to filestoadd_unixpaths as text
    set AppleScript's text item delimiters to ""
    display dialog (do shell script "jar vuf " & filestoadd_unixpaths)

  • CS6 Feature: Media Browser and Preview in Files Panel

    Another two-fer feature overview for Audition CS6.  When we started the re-write for Auditino CS5.5, it quickly became clear that the hack Audition 3 used to enable preview within the Open File dialog was no longer going to fly.  With Windows 7 and OS X, the APIs to customize these dialogs were lacking or potential pitfalls of programming peril, and the unfortunate decision was made to not include them with CS5.5.  Additionally, and at no fault of Microsoft or Apple, preview within the Files panel was not implemented.  These two missing tools unleashed a pretty loud cry from our users.  I hope our answer to these requests in CS6 will satisfy everyone.
    PREVIEW IN FILES PANEL
    It's not a glamorous feature by any means, but so crucial and glaring when it's missing.  Like oxygen.  So breathe free with preview in the Files panel!  Yes, all your favorites are back including Loop Play toggle, and Auto-Play!  You may even hide the panel transport if you really don't care about it!  And even then, when you realize how nice it was to have but are too stubborn to expose it again, you can secretly toggle Auto-Play and Loop from the panel menu.  It'll be our little secret.  I'll never tell...
    Note the mini time display when playing or after pausing preview, and the ability to sort files by open order or last-accessed order.
    MEDIA BROWSER
    A feature so nice I should probably have written about it first.  You get what you pay for, however, and these forums are a free service.  Who needs an Open File dialog, which is only available when you need to open a file but provides little value otherwise?  There's likely some reason they've been so popular the last 30 or more years of application UI design, but Audition CS6 has a little something more useful.
    Easily browse your local drives, removable and thumb drives, and mounted network locations from within Audition!  Preview files without opening them!  Filter out unsupported media!  Create Shortcuts to your favorite locations! I know, right?!
    But wait, that's not all!  Drag-and-drop your assets into the Files panel or directly into your multitrack session timeline!  Insert into a new or existing CD Layout!  Send a group of files into the Match Volume panel for amplitude/ITU Loudness adjustment!  Even reveal the file directly in your OS file explorer!  Hide the left-hand Root location panel and use the fancy little dropdown selector at the top of the panel!  There's a lot going on in this panel, and it comes FREE with your purchase of Adobe Audition CS6.

    _durin_: We are glad that you are working about it, but as we understood we can expect this kind of functionality in next version of Audition? We are great fans of your software since cool edit. We are working on it for about 13 years and must admit that politics of your company is a suprise for us. Adobe 1.0. complete non stabile, 1,5 corrected, 2.0- perfect. 3.0 very good but with few shortcomings. We are waiting for an upgrade for our pack (2xAA 2.0 + 1xAA 3.0 + new work station). We were happy that we heard that version 5 is comming, but in our industry is useless. Version 6 without few small details would be acceptable, but we won't  buy incomplete software without patch support in full price. It is a fact that you made good job because restoration of advanced tools is very fine and the engine is shocking fast. Our proposal - please give us next version for test one day before publication. Tests are free because in our opinion it is best software in our job and we wont change it. We are waiting for version 7.0 .
    Bob howes: I understand that it might be non important function for you, but please try to produce a sound commercial and match the music about 100-200 examples not using the preview, just by drag to the multitrack. Repeat this several hundred times. You will change your mind And this only one of many functionality of this button.

  • Accessing and Uploading Cloud Files

    Hi,
    1) I've uploaded files to my cloud from two websites (one active site and one I'm building).  However, I don't see how to access the files after launching Dreamweaver so that I can contunie to build my site using my cloud files.  How/where do I tap my cloud files via Fireworks or Dreamweaver?
    2) Since I've been working in Dreamweaver linking to a recently created folder which sits on my desktop, is there a way to upload that folder and it's contetnt to the cloud in one shot, instead of file-by-file?
    Thank you!

    Hi Mabletonga
    This might be helpful for you regarding the recommended process
    Dreamweaver
    http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-dreamweaver-cs6-what-is-business-catalyst
    http://tv.adobe.com/watch/introducing-business-catalyst/getting-started-with-business-cata lyst-and-dreamweaver-cs6-creating-and-publishing-sites/
    Regarding specifics on publishing the entire folder from your desktop, could you post that question over on the Dreamwever forums here:
    http://forums.adobe.com/community/dreamweaver/dreamweaver_general
    -Dave

Maybe you are looking for

  • How can I disable backup password from I tune?

    how can Idisable backup password from Itune ?

  • While downloading 7.0.6 my iphone 5 crashes

    While downloading 7.0.6 my iphone 5 it froze and said plug into itunes, when i did that, got error phone needs to be restored, couldn't get it to work keep crashing on restore for a few hours, finally restored and now it's stuck on intro/setup pages,

  • Display Icon/Image instead of Role name in top level navigation

    Hi, I want to display a image / icon instead of role name for a particular role. Can you please tell me how to achieve this ? Thanks, VP

  • Youtube on Blackberry 8110

    Hello! Huge problem! On monday i bought my first blackberry 8110 (v4.5.0.44)! Works perfectly, only videos on m.youtube.com make problems. When i want to watch a video, media player starts but the screen is just black, no video :-( Any solution?????

  • Question: create web address

    Hi All: When I create a web address a.choose system administration >system configuration>KM>Content Management>repository Managers-->Web address b.choose new c. I key in "test" in  Name field d.I key in  a URL site "http://localhost:<port>/test" (thi