Upload and Retrieve Word documents

Hai friends .. good Morning to all
I am fresher i need your help ...
Problem What i am Facing:
I upload the file and stored in Mysql ..
steps what i did to upload the file
1) get the uploaded file and write it into the file InputStream
2) using setBinaryStream(inputstramvalue);
3) in mysql that file is stored Blob datatype
Retrieve File
1)i put getBlob("cloumn name " )
getBlob("cloumn name " ) 2)ouput :
com.mysql.jdbc.Blob@9ca1fbtell me how retrieve file display in jsp ..
Please friends help me..

<form action="/UploadAction" enctype="multipart/form-data">
        File : <input type="file" name="excelTemplate"/><br/>
        <input type="submit" name="name" value="upload"/>    
</form>FileFiled.java:
import java.io.InputStream;
import java.net.URLConnection;
public class FileField{
   private InputStream fileFieldInputStream = null;
   private byte fileFieldData[] = null;
   public void setFileFieldInputStream(InputStream fileFleidInputStream){
        this.fileFieldInputStream = fileFieldInputStream;
   public InputStream getFileFliedInputStream(){
        return this.fileFielddInputStream;  
   public void setFileFieldData(byte fileFieldData[]){
        this.fileFieldData = fileFieldData;
   public byte[] getFileFieldData(){
        return this.fileFieldData;
   public String getContentType(){
      String contentType = null;
       try{
          contentType = URLConnection.guessContentTypeFromStream(fileFieldInputStream);
          if(contentType == null)
              contentType = "application/octet-stream";
       }catch(Exception exp){
      return  contentType;
}FileUploadUtils.java:
import java.io.File;
import java.io.FileOutputStream;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;
import javax.servlet.http.HttpServletRequest;
import org.apache.commons.fileupload.FileItem;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.apache.commons.fileupload.servlet.PortletFileUpload;
public class FileUploadUtils {
     private Map fileItemMap = null;
     private  Map nFileItemMap = null;
     private Object request = null;
     private ProgressListener pl = null;
     private static FileUploadUtils obj = null;
     public FileUploadUtils(Object request)throws Exception{
             this.setRequest(request);                             
             this.fileItemMap = new HashMap();
             this.nFileItemMap = new HashMap();
             this.init(this.getRequest());            
     public FileUploadUtils(Object request,ProgressListener pl)throws Exception{
             this.setRequest(request);
             this.setProgressListener(pl);
             this.fileItemMap = new HashMap();
             this.nFileItemMap = new HashMap(); 
             this.init(this.getRequest());            
     protected void setRequest(Object request){
             this.request = request;
     protected Object getRequest(){
          return this.request; 
     procted void setProgressListener(ProgressListener pl){
          this.pl = pl; 
     public static synchronized FileUploadUtils getInstance(Object request,ProgressListener pl)throws Exception{
              if(obj == null)
                 obj = new  FileUploadUtils(request);
              obj.setProgressListener(pl);
              obj.init(obj.getRequest());  
              return obj; 
     private void init(Object request)throws Exception{
              Class requestClass = Class.forName("javax.servlet.HttpServletRequest");
              if(request instanceof HttpServletRequest){
                 HttpServletRequest req = (HttpServletRequest) request;
                 if(ServletFileUpload.isMultipartContent(req))
                     this.portletMultiPartRequestInit();
              }else if(request instanceof ActionRequest){
                   ActionRequest req = (ActionRequest)request;
                   if(PortletFileUpload.isMultipartContent(req))
                       this.servletMultiPartRequestInit();
     private void servletMultiPartRequestInit() throws Exception{
         DiskFileUpload dfu  = null;
         List fileItems  = null;   
         try{
               // an object which deals with parsing the Multipart request made to the Controller
               ServletFileUpload servletFileUpload = new ServletFileUpload(new DiskFileItemFactory());               
               if(pl != null)
                 servletFileUpload.setProgressListener(pl);
               // setting Max file Size
               servletFileUpload.setSizeMax(1000000);
               // parsing the multipart request made 
               fileItems = servletFileUpload.parseRequest(this.request);
                // checking whether the content supplied is multipart content or not & checking whether we have got any elements in the generated list or not    
               if(dfu.isMultipartContent && fileItems != null){
                        Iterator iter =  fileItems.iterator();
                       while (iter.hasNext()) {
                            FileItem item = (FileItem) iter.next();           
                              String fieldName = item.getFieldName(); 
                                    // checking whether the field is a Non-File filed like textbox ,combo box & etc or not                                       
                                    if (!item.isFormField()){
                                        String fieldValue = item.getString();
                                        this.nFileItemMap.put(fieldName, fieldValue);  
                                    }else{
                                       FileField ff = new FileField();
                                       ff.setFileFieldInputStream(item.getInputStream());
                                       ff.setFileFieldData(item.get()); 
                                       this.fileItemMap.put(fieldName,ff);    
                }catch(Exception exp){
                     exp.printStackTrace();
                     System.err.println(exp.getMessage());
                     throw new Exception(exp.getCause());
                } finally{
                   fileItems = null;
                   dfu = null; 
         private void portletMultiPartRequestInit() throws Exception{
            DiskFileUpload dfu  = null;
            List fileItems  = null;   
            try{
               // an object which deals with parsing the Multipart request made to the Controller
               PortletFileUpload portletFileUpload = new ServletFileUpload(new DiskFileItemFactory());               
               if(pl != null)
                 portletFileUpload.setProgressListener(pl);
               // setting Max file Size
               portletFileUpload.setSizeMax(1000000);
               // parsing the multipart request made 
               fileItems = portletFileUpload.parseRequest(this.request);
               // checking whether the content supplied is multipart content or not & checking whether we have got any elements in the generated list or not    
               if(dfu.isMultipartContent && fileItems != null){
                        Iterator iter =  fileItems.iterator();
                       while (iter.hasNext()) {
                            FileItem item = (FileItem) iter.next();           
                              String fieldName = item.getFieldName(); 
                                    // checking whether the field is a Non-File filed like textbox ,combo box & etc or not                                       
                                    if (!item.isFormField()){                                    
                                        String fieldValue = item.getString();
                                        this.nFileItemMap.put(fieldName, fieldValue);  
                                    }else{
                                       FileField ff = new FileField();
                                       ff.setFileFieldInputStream(item.getInputStream());
                                       ff.setFileFieldData(item.get());   
                                       this.fileItemMap.put(fieldName,item);    
                }catch(Exception exp){
                     exp.printStackTrace();
                     System.err.println(exp.getMessage());
                     throw new Exception(exp.getCause());
                } finally{
                   fileItems = null;
                   dfu = null; 
         /** returns a Map of File Field Items*/
         public  Map  getFileFieldMap(){
                return this.getFileFiledsMap;
         /** return a List of Non-File fields*/  
         public Map getNonFileFieldMap(){
               return this.nFileItemMap;
}NOTE: we are ought to include commons-fileupload & commons-io library util libraries for running the above util class.
UploadAction:
public void uploadAction(HttpServletRequest request,HttpServletResponse response)throws Exception{
     FileUploadUtils fuu = new FileUploadUtils(request);
     Map fileItems = fuu.getFileFieldMap();
     Map nFileItems = fuu.getNonFileFieldMap();
     FileField ff = null;
     if(fileItems.get("excelTemplate") != null){
                ff = (FileField)fileItems.get("excelTemplate");
                if(ff.getContentType().equals("application/vnd.ms-excel")){
                    FileUploadDAO fud = FileUploadDAO.getCurrentInstance();
                    fud.addFile(ff.getFileFliedInputStream());   
                }else{
                       throw new Exception("Invalid Data Uploaded");
     }else{
          throw new Exception("An Upload Invalid Request");
}FileUploadDAO.java:
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.sql.SerialBlob;
import java.sql.Blob;
import com.myapp.dao.conn.DbConnectionUtils;
import com.myapp.service.BModelService;
public class FileUploadDAO{
    private static FileUploadDAO fup;
    protected FileUploadDAO(){}
    public static synchronized FileUploadDAO getCurrentInstance(){
          if(fup == null)
             fup = new FileUploadDAO();
          return fup;
   /*Methods to Insert the Uploaded file to the Database*/
   public boolean addFile(InputStream fis,int length){
       Connection con = null;
       PreparedStatement pstmt = null;
       ResultSet rs = null;
       boolean flag = false;
       try{
           String sqlQuery = "insert into file_table (fileBlob) values (?)";
           con = DbConnectionUtils.getConnection();
           pstmt = con.prepareStatement(sqlQuery);
           pstmt.setBinaryStream(1,fis,length);
           int i = pstmt.executeUpdate();
           if(i > 0)
             flag = true;
       }catch(Exception exp){
            exp.printStackTrace();     
       }finally{
           try {      
          if(pstmt != null)                   
             pstmt.close();                
          if(con != null)
                   con.close();                                
       }catch(Exception exp){                   
       }finally {
          pstmt = null;
             con = null;
       return flag;
   public boolean addFile(InputStream fis){
       Connection con = null;
       PreparedStatement pstmt = null;
       ResultSet rs = null;
       boolean flag = false;
       try{
           String sqlQuery = "insert into file_table (fileBlob) values (?)";
           con = DbConnectionUtils.getConnection();
           pstmt = con.prepareStatement(sqlQuery);
           pstmt.setBinaryStream(1,fis);
           int i = pstmt.executeUpdate();
           if(i > 0)
             flag = true;
       }catch(Exception exp){
            exp.printStackTrace();     
       }finally{
           try {      
          if(pstmt != null)                   
             pstmt.close();                
          if(con != null)
                   con.close();                                
       }catch(Exception exp){                   
       }finally {
          pstmt = null;
             con = null;
       return flag;
   public Blob getFileData(String fileId){
       Connection con = null;
       PreparedStatement pstmt = null;
       ResultSet rs = null;
       SerialBlob sb = null;
       try{
           String sqlQuery = "select fileBlob from file_table where fileId = ?";
           con = DbConnectionUtils.getConnection();
           pstmt = con.prepareStatement(sqlQuery);
           pstmt.setString(1,fileId);
           rs = pstmt.executeQuery();
           if(rs.next()){
              Object obj = rs.getObject(1);
               if(obj instanceof Blob)
                  sb = new SerialBlob((Blob)obj);
       }catch(Exception exp){
            exp.printStackTrace();     
       }finally{
           try {      
          if(pstmt != null)                   
             pstmt.close();                
          if(con != null)
                   con.close();                                
       }catch(Exception exp){                   
       }finally {
          pstmt = null;
             con = null;
       return sb;
}Display Action:
public void displayAction(HttpServletRequest request,HttpServletResponse response)throws Exception{
        String fileId = request.getParameter("fid");
        if(fileId == null)
           throw new Exception("Invalid Action Requested");
        FileUploadDAO fud = FileUploadDAO.getCurrentInstance();
        Blob blob = fud.getFileData(fud);
        if(blob == null)
           throw new Exception("No Data Found");
         String mimeType = URLConnection.guessContentTypeFromStream(blob.getBinaryStream());
         if(mimeType == null)
            mimeType = "application/octet-stream";
         response.setContentType(contentType);
         response.setContentLength(blob.length());
          BufferedInputStream input = null;
          BufferedOutputStream output = null; 
          int contentLength = blob.length();
          try{
                 input = new BufferedInputStream(blob.getBinaryStream(),768);
                 output = new BufferedOutputStream(response.getOutputStream(),768);
                while ( contentLength-- > 0 ) {
                                 output.write(input.read());
                 output.flush();
          }catch(Exception exp){
          }finally{
              if(input != null){
                   try{input.close();}catch(Exception exp){}
              if(output != null){
                   try{output.close();}catch(Exception exp){}
}now in order display it on to a JSP here is how you can render the content.
<iframe src="displayActionUrlPattern?fid=2345ab"/>Hope the discussed example above might be of some help :)
REGADS,
RaHuL

Similar Messages

  • Upload and display Word Document in WD application

    Hello,
    I have a WD ABAP appl. where the user wants to upload an Word / Excel file (from its own local drive).
    The document shall be saved in SAP and it shall also be possible to display the document later in the WD application.
    I implemented the UI element upload in the view, to determine the path of the document.
    For the display implemented the UI element Office control.
    1. When i browse the document, the properties data, filename and mime type are filled into the bound context elements of the upload UI.
    2. The property datasource of the UI office control I bound to the same context element, that is also bound to the property data of the upload UI.
    The office control opens a word document, but the document is empty.
    Is it possible that the document is not uploaded correct?
    In another application I did an upload for a PDF doc.. There I implemented the following coding as action of the button 'Upload'.
    data lo_nd_pdf type ref to if_wd_context_node.
    data lo_el_pdf type ref to if_wd_context_element.
    data ls_pdf type wd_this->element_pdf.
    data lv_pdf like ls_pdf-pdf.
    navigate from <CONTEXT> to <PDF> via lead selection
    lo_nd_pdf = wd_context->get_child_node( name = wd_this->wdctx_pdf ).
    get element via lead selection
    lo_el_pdf = lo_nd_pdf->get_element( ).
    get single attribute
    lo_el_pdf->get_attribute(
    exporting
    name = `PDF`
    importing
    value = lv_pdf ).
    Get a reference to the from processing class.
    data: l_fp type ref to if_fp.
    l_fp = cl_fp=>get_reference( ).
    Get a reference to the PDF Object class.
    data: l_pdfobj type ref to if_fp_pdf_object.
    l_pdfobj = l_fp->create_pdf_object( ).
    set the pdf in the PDF Object
    l_pdfobj->set_document( pdfdata = lv_pdf ).
    set the PDF Object to extract data the Form data.
    l_pdfobj->set_extractdata( ).
    execute call to ADS
    l_pdfobj->execute( ).
    get the PDF Form data
    data: pdf_form_data type xstring.
    l_pdfobj->get_data(
    importing
    formdata = pdf_form_data ).
    convert the xstring from data to string so it can be processed using the iXML classes
    data: converter type ref to cl_abap_conv_in_ce,
    formxml type string.
    converter = cl_abap_conv_in_ce=>create( input = pdf_form_data ).
    converter->read(
    importing
    data = formxml ).
    pull in the iXML type group.
    type-pools: ixml.
    get a reference to iXML object
    data:l_ixml type ref to if_ixml.
    l_ixml = cl_ixml=>create( ).
    get iStream object from StreamFactory
    data: streamfactory type ref to if_ixml_stream_factory,
    istream type ref to if_ixml_istream.
    streamfactory = l_ixml->create_stream_factory( ).
    istream = streamfactory->create_istream_string( formxml ).
    create an XML document class that will be used to process the XML
    data: document type ref to if_ixml_document.
    document = l_ixml->create_document( ).
    create the parser class
    data: parser type ref to if_ixml_parser.
    parser = l_ixml->create_parser( stream_factory = streamfactory
    istream = istream
    document = document ).
    parse the XML
    parser->parse( ).
    define XML Node type object
    data: node type ref to if_ixml_node,
    attributes type ref to if_ixml_named_node_map.
    get the psi sales data Node and value.
    data ls_psi_sales type wd_this->element_psi_sales.
    data: lt_dfies type table of dfies,
    ls_defies type dfies.
    call function 'DDIF_NAMETAB_GET'
    exporting
    tabname = 'ZCM_PSI_SALES'
    ALL_TYPES = ' '
    LFIELDNAME = ' '
    GROUP_NAMES = ' '
    UCLEN =
    IMPORTING
    X030L_WA =
    DTELINFO_WA =
    TTYPINFO_WA =
    DDOBJTYPE =
    DFIES_WA =
    LINES_DESCR =
    tables
    X031L_TAB =
    dfies_tab = lt_dfies
    exceptions
    not_found = 1
    others = 2
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    data: lv_fieldname type string.
    field-symbols <fs_field> type any.
    loop at lt_dfies into ls_defies.
    lv_fieldname = ls_defies-fieldname.
    node = document->find_from_name( name = lv_fieldname ).
    assign component lv_fieldname
    of structure ls_psi_sales
    to <fs_field>.
    if <fs_field> is assigned.
    <fs_field> = node->get_value( ).
    endif.
    endloop.
    WRITE DATA INTO CONTEXT
    data lo_nd_psi_sales type ref to if_wd_context_node.
    data lo_el_psi_sales type ref to if_wd_context_element.
    navigate from <CONTEXT> to <PSI_SALES> via lead selection
    lo_nd_psi_sales = wd_context->get_child_node( name = wd_this->wdctx_psi_sales ).
    get element via lead selection
    lo_el_psi_sales = lo_nd_psi_sales->get_element( ).
    set all declared attributes
    lo_el_psi_sales->set_static_attributes(
    exporting
    static_attributes = ls_psi_sales ).
    Do I need such a code also to upload a word doc?
    Which interface / class exists for word documents? (for PDF upload there is the interface IF_FP)
    How can I save a document in SAP? (as MIME Object?  with which method?)
    I hope someone can help me!?
    BR

    You can use the fileupload and filedownload uielements.
    Check these links:
    [File Upload|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/b3/be7941601b1d09e10000000a155106/content.htm]
    [File Download|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/09/a5884121a41c09e10000000a155106/content.htm]
    When you upload a file and save in SAP, are you saving it as xstring.
    If yes follow these steps for filedownload.
    Follow these steps for file download:
    1 Create FileDownload uielement in your View
    2.Create an Attribute of type xstring.
    3.Bind this attribute to the data property of your Filedownload uielement.
    4. during fileuplaod as you are saving the document in xstring format, fetch the same from your database table and pass the value to filedownload i.e set the attribute bound to data property of filedownload uielement with the xstring content.

  • To upload pdf and ms word document in VA01 header menu -TEXT tab

    I want to upload local file (PDF and Word) in R/3-VA01-Text Header..
    Can any one tell me the solution for that.

    Can any body tell me how search text in PDF
    and MS Word document through Java code, any
    body has code or any suggestion to giveYes.
    First, you need to work out how to read each document type from Java.
    E.g, for MS Word you could use Apache Jakarta POI - HWPF: http://jakarta.apache.org/poi/hwpf/index.html
    Then, you use Apache Lucene to index and search.
    See http://lucene.apache.org/java/docs/index.html
    ~D

  • I uploaded an rtf (word) document to icloud, but when I try to open in Pages, I get a message that it does not support rtf format. What is going on?

    I uploaded an rtf (word) document to icloud, but when I try to open in Pages, I get a message that it does not support rtf format. What is going on?

    Supported file formats for iOS Pages
    Import:
    Pages ’09 for Mac
    Microsoft Word - Office Open XML (.docx) and Office 97 or later (.doc)
    Plain Text files (.txt)
    Export:
    Pages ’09 for Mac
    Microsoft Word (.doc)
    PDF
    As you can see -  .rtf is not supported.

  • How to prevent public users from creating and saving Word Documents

    I have two public computers available for the public to view legal case documents.  The program used uses the Word shell to save, view and print documents within the program.  The clerk has stated that she does not want attorneys or others to
    be able to create and save word documents on these computers.  Is there a way to prevent a user on the public computers from opening word, creating a document and saving it?

    Instead of installing Word on the public computer (or at least instead of making it available on the public account), you could install the free Word Viewer:
    https://www.microsoft.com/en-us/download/details.aspx?id=4 and make that available for the public account. Alternatively, if you want to ensure the document retains its originally
    formatting regardless of what printer may or may not be attached to the public computer, you could keep only PDF copies of the file where the public can access them and install the free Adobe Acrobat Reader for viewing:
    https://get.adobe.com/reader/.
    Cheers
    Paul Edstein
    [MS MVP - Word]

  • Search text in PDF and MS Word document

    Can any body tell me how search text in PDF and MS Word document through Java code, any body has code or any suggestion to give
    Thank You
    Adnan

    Can any body tell me how search text in PDF
    and MS Word document through Java code, any
    body has code or any suggestion to giveYes.
    First, you need to work out how to read each document type from Java.
    E.g, for MS Word you could use Apache Jakarta POI - HWPF: http://jakarta.apache.org/poi/hwpf/index.html
    Then, you use Apache Lucene to index and search.
    See http://lucene.apache.org/java/docs/index.html
    ~D

  • Read,write and create word document with list data

    Hi,
    My requirement is that I have a custom list called List1 and which has a 4 (suppose XName, location, phone, email)columns and also have a Template document(.dot). If I click on save button , new document has to create from the Template document(.dot) and
    should modify the content depends on list columns.
    For that I need to read the document , find out the text where XName , location,,phone, email and replace with the list item data(user entered data). 
    Can anybody please refer links for read,write and create word document?
    Thanks in advance.

    Yes, you can using Office Open XML. I found it to be a lot more cumbersome and in the end not a money saving approach:
    https://msdn.microsoft.com/en-us/library/office/bb448854.aspx?f=255&MSPPError=-2147217396
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Crocodoc HTML5 document viewer:Upload and then display document

    Dear all,
    Did anyone try to upload and then display documents using HTML5 technology. Also recently i came across SAP is using Crocodoc,"an HTML5 documents to display their presentations". I welcome all of your thoughts and suggestions.
    Regards
    Prabaharan

    I have the same need as vudean. I don't understand the security issue. If I type a document using Pages or whatever, why can't I upload the document to a web site? I think Apple should make the standard web "file upload control" available to iPad users.
    I understand that there should be some limitations, but it should be possible to upload standard user files. I can upload them to Dropbox, so I don't se the big difference.
    Does Apple read this? If not, where can I propose this feature to them?

  • How can i save and download word documents on my ipad without the pages app

    Need to know how to save documents on my ipad so i can share the same version of documents between my computer and my ipad on the same network. I do not have the pages app. and Most of the documents are either pdfs of word docs. so need to be able to save them on ipad and retrieve them when i am on the move. Pls help?

    You have to have an app on the iPad that is compatible with the particular file type that you want to save, edit or share. You can look at any of the word processing apps - Pages is one, Documents to Go, Quick Office Pro - but you have to have one like that in order to save and edit Word files.
    With pdf files - iBooks will work to save them - but that's all. Other apps like GoodReader will let you annotate them.
    You have to decide which app will serve your needs best and them download them in order to save, edit and share those file types.

  • Upload / Open a Word Document from BDS with WebDynpro

    Hello,
    we use the BDS (Business Document Server) to storage our word files. Now we use WebDynpro with the UI OfficeControl.
    Could any one tell me, how to open/upload my documents from BDS with the OfficeControl.
    The UI FileUpload does not work, because it is not allowed to use specify URLs. link:[http://help.sap.com/saphelp_nw70/helpdata/EN/b3/be7941601b1d09e10000000a155106/frameset.htm]
    For example that is the URL from the BDS: "SAPR3://SAPR3CMS/get/100/BDS_5FDB2_5FR/7B3AAF5B22AAD21197ED0060B0672A3C/Forminterface.doc"
    I use the class "CL_BDS_DOCUMENT_SET" with the method "get_with_url". result is above.
    Each example with the OfficeControl from SAP (Package SIOS) use the Mime Repository:
    mime_repository = cl_mime_repository_api=>get_api( ).
      CALL METHOD mime_repository->get
        EXPORTING
          i_url     = url
        IMPORTING
          e_content = content.
      wd_context->set_attribute( name = 'DATAS' value = content ).
    Have any one an idea, how BDS and WebDynpro works together

    What about getting the binary of the word document from BDS and download this?
    Yes, it exist a method calls "get_with_table". This return the binary path from my url above.
    Here is my source code:
    public attributes
    DATA oi_document TYPE REF TO if_ios_wordprocessing.
    DATA oi_factory TYPE REF TO if_ios_factory.
    METHOD wddomodifyview .
    DATA ol_node TYPE REF TO if_wd_context_node.
    DATA ol_office TYPE REF TO cl_wd_office_control.
    DATA vl_document TYPE xstring.
    short from
      vl_document = myBDS->get_with_table( ).
    Settings for UI OFFICE_CONTROL
      ol_node = wd_context->get_child_node( 'OFFICE' ).
      ol_node->set_attribute( name = 'DATASET' value = vl_document ).
    get the office control
      wd_this->oi_office ?= view->get_element( 'OFFICE_CONTROL' ).
    get the IOS Factory
          wd_this->oi_factory ?= ol_office->_method_handler.
    get proxy document
          wd_this->oi_factory->get_wordprocessing_proxy(
          IMPORTING proxy = wd_this->oi_document  ).
    CALL METHOD wd_this->oi_document->if_ios_document~opendocument( ).
    ENDMETHOD.
    When I compile everything is ok. But when I run my application, it nothing happen. No word file is opening or no error message. I create a ALC trace (SAPNOTE 949770).
    Each time when I try to open my word file comes a popup-window from the alc-trace:
    ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::| STG_E_READFAULT  : readaccess|HRESULT=-2147287010(     A disk error occurred during a read operation)
    ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::|Office version is lower than 12, only native office format supported|HRESULT=-2147467259(Unspecified error
    ERRO|20081024143529|WD86_1300|CIOS_GeneralDocumentContainer_Acf::|loadOffice2007xml|HRESULT=-2147467259(Unspecified error )
    But I have access to the BDS and to the document.
    Can any one help me.....
    Regards
    Nils

  • Is it possible to retrieve word documents from my imac after upgrading with yosemite from a 10.8 to a 10.10?

    I have just upgraded my iMac from a 10.8 to a 10.10 with OS X Yosemite and have lost Microsoft Word.  Is there any way to retrieve my lost documents and what is a replacement for the microsoft word program?  When I try to open a word document  a notice comes up informing me 'you can't open the app "Microsoft Word" because PowerPC apps are no longer supported'.  Are there any options here?  Appreciate any info.

    LibreOffice
    OpenOffice
    Office Alternatives - Free

  • Need an app to edit and sign word documents (sign with stylus)! Notability let's me sign but doesn't pull up letter head, quickofficepro let's me edit but not sign. Looking for an app that does both

    I am looking for an app where I can edit word documents as well as sign them.  I am a physical therapist whose looking to cut down on paper work.  Someone types my evaluations and then we print them out for me to edit by hand and then they go back and make the corrections on the computer then w print them and sign them to send off.  Recently I have begun using apps where I can pull up the document and edit it thru quickofficepro or through cloudon, but I cannot sign them using a stylus pen.  I also have notability which I can use to sign the documents, but it doesn't save the document as a doc, it's either a PDF or rtf. Also, in notability, it doesn't pull up the letter head for our company which is a template with our logo on it.  So I need an app where I can both edit and sign my documents by hand using a stylus.  If someone could provide me with any relevant information I would greatly appreciate it.  Thank you for your time.

    Hi,
    Pages for Mac OS X, the topic discussed in this community won't do it.
    I think you'll have a better chance for a useful answer in either the Using iPad or the iPad in the Enterprise community.
    Regards,
    Barry

  • How to upload and down load Document from Server in Webdynpro Java

    Hi,
    I have to upload and download document to the server and from the server.
    The examle and the sample application which is available in SDN is not helpful as its about uploading and downloading from the application context.Please let me know how to upload/download from teh server.
    Sandip

    Hi sandip,
         I have same requirement.If u get any source please let me know.
    reagrds,
    Anuradha

  • Uploading and view an document in application server from abap

    Dear SDN users,
    I have a similar requirement:
    i need to upload a docuement into SAP  under a particular system generated unique No.
    My basis team has given a file path in application server.
    So i need to upload and view(Not Downloading) that uploaded document at any time in future.
    Note : Each System generated no is having different documents.
    Thanks in advance.
    Regards
    RAJ
    Moderator Message: Do not dump your requirement. Get back to the forums in case you've any specific issues.
    Edited by: Suhas Saha on Jan 14, 2012 3:50 PM

    Dear Prakash,
    As i Said  i have to  upload and Just view the documents.
    its an urgent requirement.
    i want to upload multiple documents and i have to raed with file name.
    Note : currently it is downloading only last uploaded one.
    following is the code:
    DATA: V_DSN(40) VALUE '\usr\reports\fico\',
          V_STR(1673) TYPE C.
    FORM UPLOAD .
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = L_FNAME
    FILETYPE = 'BIN'
    IMPORTING
    FILELENGTH = LENGTH
    TABLES
    DATA_TAB = ITAB.
      OPEN DATASET V_DSN FOR OUTPUT IN BINARY MODE..
      LOOP AT ITAB INTO V_STR.
        TRANSFER V_STR TO V_DSN LENGTH 1673.
      ENDLOOP.
      CLOSE DATASET V_DSN.
      IF SY-SUBRC EQ 0.
    MESSAGE S001(ZSD) WITH 'Sucess'.
      ENDIF.
    EndForm.
    FORM DOWMLOAD .
    CLEAR WA_DEMO.
    OPEN DATASET V_DSN FOR INPUT IN BINARY MODE.
    DO.
    READ DATASET V_DSN INTO ITAB-FIELD MAXIMUM LENGTH 1673.
    IF SY-SUBRC = 0.
    APPEND ITAB.
    ELSE.
    EXIT.
    ENDIF.
    ENDDO.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = DWN_FILE
    FILETYPE = 'BIN'
    BIN_FILESIZE = LENGTH
    IMPORTING
    FILELENGTH = LENGTHN
    TABLES
    DATA_TAB = ITAB.
    endform
    Regards
    MNR
    Edited by: mnr4sap on Jan 14, 2012 1:54 PM

  • Store and display word document in database through forms

    how can i store a word document in database through forms 6i or 10g, and display it through forms from database.
    i know how to store a binary file in database through DBMS_LOB package, but i want to do it throug forms. is it possible?
    regards

    Hi Alex
    "Create a datablock and specify the item datatype as blob"
    BUT: How to bring the document to the blob?
    Hi user 611..
    Warning: It is easy if you use an OLE-Object - but OLE is a special format. The result will not be the same as with dbms_LOB.
    We have a application with documents stored via OLE - terrible!
    OLE is no longer supported by forms 10. But webutil would help.
    I asked a similar question and got a good answer:
    OLE-Container and migration to the web
    Wolfram

Maybe you are looking for

  • Where can i find a dutch manual for photoshop cs6

    Hi, I'm trying to find the dutch manual for Photoshop CS6. There is a hyperlink available on this page Help bij Photoshop | Archief called Help bij Adobe Photoshop CS5 (PDF), but if I follow this I end up on an "error page" in English telling me that

  • Looking for guidance to fix my VERY SLOW imac/osx mavericks

    I installed Mavericks many months ago and was disappointed in how it just crippled my system. To date I've just muddled through.   I've tried cleaning out some programs, but I'm not sure what I should keep and what I should ditch. I'm not also sure h

  • Can Apple TV recognize Adobe Photoshop Lightroom 2?

    Can Apple TV recognize Adobe Photoshop Lightroom 2?

  • Help with installing trail

    i need help installing my after effects cs5 on my windows xp serves pack 2. when i go to setup it says that i need to exit installer and try again but that does not do any thing so i just click the ignore and continue button. once the installer is do

  • Web sites not loading properly / Account Error: Nonexistent

    Something strange has begun happening with the websites I've been publishing through iWeb and Me.com - When the site loads, parts of it are missing or load improperly, such as a picture, or a border around a picture, and so on. However, the really st