Workflow to copy file from SharePoint app web to host web?

Hi All,
About SharePoint-hosted Apps and Visual Stuidio 2012 workflows:
I'd like to copy files from a document library which is in my app web to a doc lib in my host web. This, using a Visual Studio 2012 workflow.
Could you please provide some pointers about how to perform this? I couldn't find much on the web about this right now.
Much appreciated

see http://forum.java.sun.com/thread.jsp?forum=4&thread=206423

Similar Messages

  • Copy file from client PC to server in a web deployed application

    I have developed one application using Oracle forms 6i, which is deployed on the web server.
    I run this application from a client PC in Internet Explorer using internet.
    I want to copy one file from the client PC to the web server.
    I have done following things
    - Created a shared folder on the server and given full rights to every one on this folder
    - I use 'net use' command in my program to connect to this shared folder
    - I use copy command to copy file from local client pc to server. This copy command I am executing using host command of my programming (PL/SQL: eg. host('copy abc.txt \\server\share\') )
    But this does not work.
    When I do the same thing in command window, it works.
    (ie. Start-Run cmd to open command window and then type the above copy command)
    Can you please tell me, how to copy a file from client PC to the sever in Web deployed application?
    Thanks

    I downloaded D2KWUtil from the link suggested by you. It has very nice example demo form. But the documentation provided says following
    Using D2KWUTIL in Web Deployed Applications
    The use of this library is not supported with Web deployed applications.
    In a web deployment scenario not all functions within D2KWUTIL will work. Any function that interacts with the User Interface (such as those in the WIN_API_DIALOG package) will fail.
    Any interaction with the O/S by other functions will all be executed on the NT server and will act within, or return information pertinant to, the environment on that machine. For instance GET_COMPUTER_NAME will return the Server’s name, not the name of the computer that the Client browser is running on. Likewise COPY_FILE will copy files in the Forms Server not on the Client.
    Functions such as those in WIN_API_BITOP will continue to work without change.
    so this will not work in web deployed application.
    Any other suggestion?
    Thanks

  • CPU Jul-09 Installation - Error Cannot copy file from 'libjox10.so' to

    Hi All, I received this error while I was installing the last CPU on a 10.2.0.4 Oracle Instance running on a HP-UX Itanium System:
    Patch 8568398:
    Copy Action: Desctination File "/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so" is not writeable.
    'oracle.rdbms, 10.2.0.4.0': Cannot copy file from 'libjox10.so' to '/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so'
    I checked metalink' site with no similar results found.
    Could anybody help me?
    Should I run /usr/sbin/slibclean and remove the last patch (Patch 8568398) and then try again?
    This is the complete log...
    $ opatch version
    Invoking OPatch 10.2.0.4.7
    OPatch Version: 10.2.0.4.7
    OPatch succeeded.
    $ sqlplus /nolog
    SQL*Plus: Release 10.2.0.4.0 - Production on Fri Jul 17 16:29:29 2009
    Copyright (c) 1982, 2007, Oracle. All Rights Reserved.
    SQL> conn / as sysdba
    Connected.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> exit
    Disconnected from Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    $ lsnrctl stop
    LSNRCTL for HPUX: Version 10.2.0.4.0 - Production on 17-JUL-2009 16:32:29
    Copyright (c) 1991, 2007, Oracle. All rights reserved.
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=Hostname)(PORT=1521)))
    The command completed successfully
    $ emctl stop dbconsole
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.4.0
    Copyright (c) 1996, 2007 Oracle Corporation. All rights reserved.
    http://hostname:1158/em/console/aboutApplication
    Stopping Oracle Enterprise Manager 10g Database Control ...
    ... Stopped.
    $unzip p8534387_10204_HPUX-IA64.zip
    <...>
    $ cd 8534387
    $ opatch napply -skip_subset -skip_duplicate
    Invoking OPatch 10.2.0.4.7
    Oracle Interim Patch Installer version 10.2.0.4.7
    Copyright (c) 2009, Oracle Corporation. All rights reserved.
    UTIL session
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    Central Inventory : /u02/app/oracle/oraInventory
    from : /var/opt/oracle/oraInst.loc
    OPatch version : 10.2.0.4.7
    OUI version : 10.2.0.4.0
    OUI location : /u02/app/oracle/product/10.2/Db_1/oui
    Log file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2 009-07-17_16-38-05PM.log
    Patch history file: /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_ history.txt
    Invoking utility "napply"
    Checking conflict among patches...
    Checking if Oracle Home has components required by patches...
    Checking skip_duplicate
    Checking skip_subset
    Checking conflicts against Oracle Home...
    OPatch continues with these patches: 7155248 7155249 7155250 7155251 7155252 7155253 7155254 7197583 7375611 7375613 7375617 7609057 7609058 8309587 8309592 8309623 8309632 8309637 8309642 8534387 8568395 8568397 8568398 8568402 8568404 8568405
    Do you want to proceed? y
    y
    User Responded with: Y
    Running prerequisite checks...
    Prerequisite check "CheckApplicable" failed.
    The details are:
    Patch 8568398:
    Copy Action: Desctination File "/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so" is not writeable.
    'oracle.rdbms, 10.2.0.4.0': Cannot copy file from 'libjox10.so' to '/u02/app/oracle/product/10.2/Db_1/lib/libjox10.so'
    UtilSession failed: Prerequisite check "CheckApplicable" failed.
    $ opatch lsinventory -detail
    Invoking OPatch 10.2.0.4.7
    Oracle Interim Patch Installer version 10.2.0.4.7
    Copyright (c) 2009, Oracle Corporation. All rights reserved.
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    Central Inventory : /u02/app/oracle/oraInventory
    from : /var/opt/oracle/oraInst.loc
    OPatch version : 10.2.0.4.7
    OUI version : 10.2.0.4.0
    OUI location : /u02/app/oracle/product/10.2/Db_1/oui
    Log file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_17-53-30PM.log
    Patch history file: /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_history.txt
    Lsinventory Output file location : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/lsinv/lsinventory2009-07-17_17-53-30PM.txt
    Installed Top-level Products (2):
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
    There are 2 products installed in this Oracle Home.
    Installed Products (190):
    Agent Required Support Files 10.2.0.1.0
    Agent Required Support Files Patch 10.2.0.4.0
    Assistant Common Files 10.2.0.1.0
    Assistant Common Files Patch 10.2.0.4.0
    Bali Share 1.1.18.0.0
    Buildtools Common Files 10.2.0.1.0
    Character Set Migration Utility 10.2.0.1.0
    Character Set Migration Utility Patch 10.2.0.4.0
    Database Configuration and Upgrade Assistants 10.2.0.1.0
    Database Configuration and Upgrade Assistants Patch 10.2.0.4.0
    Database SQL Scripts 10.2.0.1.0
    Database SQL Scripts Patch 10.2.0.4.0
    Database Workspace Manager 10.2.0.1.0
    Database Workspace Manager 10.2.0.4.0
    DBJAVA Required Support Files 10.2.0.1.0
    DBJAVA Required Support Files Patch 10.2.0.4.0
    Enterprise Edition Options 10.2.0.1.0
    Enterprise Manager Agent Core 10.2.0.1.0
    Enterprise Manager Agent Core Patch 10.2.0.4.0a
    Enterprise Manager Agent DB 10.2.0.1.0
    Enterprise Manager Agent DB 10.2.0.4.0
    Enterprise Manager Baseline 10.2.0.1.0
    Enterprise Manager Baseline 10.2.0.4.0
    Enterprise Manager Common Core Patch 10.2.0.4.0a
    Enterprise Manager Common Files 10.2.0.1.0
    Enterprise Manager Minimal Integration 10.2.0.1.0
    Enterprise Manager plugin Common Files 10.2.0.1.0
    Enterprise Manager plugin Common Files 10.2.0.1.0
    Enterprise Manager plugin Common Files Patch 10.2.0.4.0
    Enterprise Manager Repository Core 10.2.0.1.0
    Enterprise Manager Repository Core patch 10.2.0.4.0a
    Enterprise Manager Repository DB 10.2.0.1.0
    Enterprise Manager Repository DB 10.2.0.4.0
    Generic Connectivity Common Files 10.2.0.1.0
    Generic Connectivity Common Files Patch 10.2.0.4.0
    HAS Common Files 10.2.0.1.0
    HAS Common Files Patch 10.2.0.4.0
    HAS Files for DB 10.2.0.1.0
    HAS Files for DB Patch 10.2.0.4.0
    Installation Common Files 10.2.0.1.0
    Installation Common Files Patch 10.2.0.4.0
    Installer SDK Component 10.2.0.4.0
    iSQL*Plus 10.2.0.1.0
    iSQL*Plus 10.2.0.4.0
    Java Runtime Environment 1.4.2.14.0
    JDBC Common Files 10.2.0.1.0
    JDBC Common Files 10.2.0.4.0
    LDAP Required Support Files 10.2.0.1.0
    LDAP Required Support Files Patch 10.2.0.4.0
    OLAP SQL Scripts 10.2.0.1.0
    OLAP SQL Scripts Patch 10.2.0.4.0
    Oracle Advanced Security 10.2.0.1.0
    Oracle Advanced Security Patch 10.2.0.4.0
    Oracle Call Interface (OCI) 10.2.0.1.0
    Oracle Call Interface (OCI) Patch 10.2.0.4.0
    Oracle Clusterware RDBMS Files 10.2.0.1.0
    Oracle Clusterware RDBMS Files Patch 10.2.0.4.0
    Oracle Code Editor 1.2.1.0.0I
    Oracle Configuration Manager 10.2.7.1.0
    Oracle Containers for Java 10.2.0.1.0
    Oracle Containers for Java 10.2.0.4.0
    Oracle Core Required Support Files 10.2.0.1.0
    Oracle Core Required Support Files Patch 10.2.0.4.0
    Oracle Data Mining RDBMS Files 10.2.0.1.0
    Oracle Data Mining RDBMS Files Patch 10.2.0.4.0
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10g 10.2.0.1.0
    Oracle Database 10G 32 bit 10.1.0.2.0
    Oracle Database 10g interMedia Files 10.2.0.1.0
    Oracle Database 10g interMedia Files Patch 10.2.0.4.0
    Oracle Database 10g Patch 10.2.0.4.0
    Oracle Database 10g Patch 10.2.0.4.0
    Oracle Database 10g Release 2 Patch Set 3 10.2.0.4.0
    Oracle Database User Interface 2.2.13.0.0
    Oracle Database Utilities 10.2.0.1.0
    Oracle Database Utilities Patch 10.2.0.4.0
    Oracle Display Fonts 9.0.2.0.0
    Oracle Enterprise Manager Console DB 10.2.0.1.0
    Oracle Enterprise Manager Console DB 10.2.0.4.0
    Oracle Extended Windowing Toolkit 3.4.38.0.0
    Oracle Globalization Support 10.2.0.1.0
    Oracle Globalization Support Patch 10.2.0.4.0
    Oracle Help For Java 4.2.6.1.0
    Oracle Help for the Web 1.1.10.0.0
    Oracle Ice Browser 5.2.3.6.0
    Oracle interMedia 10.2.0.1.0
    Oracle interMedia Annotator 10.2.0.1.0
    Oracle interMedia Client Option 10.2.0.1.0
    Oracle interMedia Client Option Patch 10.2.0.4.0
    Oracle interMedia Java Advanced Imaging 10.2.0.1.0
    Oracle interMedia Java Advanced Imaging Patch 10.2.0.4.0
    Oracle interMedia Locator 10.2.0.1.0
    Oracle interMedia Locator Patch 10.2.0.4.0
    Oracle interMedia Locator RDBMS Files 10.2.0.1.0
    Oracle interMedia Locator RDBMS Files Patch 10.2.0.4.0
    Oracle interMedia Patch 10.2.0.4.0
    Oracle Internet Directory Client 10.2.0.1.0
    Oracle Internet Directory Client Patch 10.2.0.4.0
    Oracle Java Client 10.2.0.1.0
    Oracle Java Client Patch 10.2.0.4.0
    Oracle JDBC Thin Driver for JDK 1.2 10.2.0.1.0
    Oracle JDBC Thin Driver for JDK 1.2 Patch 10.2.0.4.0
    Oracle JDBC Thin Driver for JDK 1.4 10.2.0.1.0
    Oracle JDBC Thin Driver for JDK 1.4 Patch 10.2.0.4.0
    Oracle JDBC/OCI Instant Client 10.2.0.1.0
    Oracle JDBC/OCI Instant Client Patch 10.2.0.4.0
    Oracle JFC Extended Windowing Toolkit 4.2.33.0.0
    Oracle JVM 10.2.0.1.0
    Oracle JVM Patch 10.2.0.4.0
    Oracle LDAP administration 10.2.0.1.0
    Oracle LDAP administration patch 10.2.0.4.0
    Oracle Locale Builder 10.2.0.1.0
    Oracle Message Gateway Common Files 10.2.0.1.0
    Oracle Message Gateway Common Files Patch 10.2.0.4.0
    Oracle Net 10.2.0.1.0
    Oracle Net Listener 10.2.0.1.0
    Oracle Net Listener Patch 10.2.0.4.0
    Oracle Net Patch 10.2.0.4.0
    Oracle Net Required Support Files 10.2.0.1.0
    Oracle Net Required Support Files Patch 10.2.0.4.0
    Oracle Net Services 10.2.0.1.0
    Oracle Notification Service 9.0.4.0.0
    Oracle Notification Service Patch 10.2.0.4.0
    Oracle OLAP 10.2.0.1.0
    Oracle OLAP API 10.2.0.1.0
    Oracle OLAP API Patch 10.2.0.4.0
    Oracle OLAP Patch 10.2.0.4.0
    Oracle OLAP RDBMS Files 10.2.0.1.0
    Oracle OLAP RDBMS Files Patch 10.2.0.4.0
    Oracle One-Off Patch Installer 10.2.0.4.0
    Oracle Partitioning 10.2.0.1.0
    Oracle Partitioning Patch 10.2.0.4.0
    Oracle Programmer 10.2.0.1.0
    Oracle RAC Required Support Files-HAS 10.2.0.1.0
    Oracle RAC Required Support Files-HAS Patch 10.2.0.4.0
    Oracle Real Application Testing 10.2.0.4.0
    Oracle Recovery Manager 10.2.0.1.0
    Oracle Recovery Manager Patch 10.2.0.4.0
    Oracle Required Support Files 32 bit 10.2.0.0.0
    Oracle Required Support Files 32 bit Patch 10.2.0.4.0
    Oracle Spatial 10.2.0.1.0
    Oracle Starter Database 10.2.0.1.0
    Oracle Starter Database Patch 10.2.0.4.0
    Oracle Text 10.2.0.1.0
    Oracle Text Patch 10.2.0.4.0
    Oracle UIX 2.1.22.0.0
    Oracle Universal Installer 10.2.0.4.0
    Oracle Wallet Manager 10.2.0.1.0
    Oracle Wallet Manager Patch 10.2.0.4.0
    Oracle XML Development Kit 10.2.0.1.0
    Oracle XML Development Kit Patch 10.2.0.4.0
    Parser Generator Required Support Files 10.2.0.1.0
    Perl Interpreter 5.8.3.0.1
    Perl Interpreter Patch 5.8.3.0.1a
    PL/SQL 10.2.0.1.0
    PL/SQL 10.2.0.4.0
    PL/SQL Embedded Gateway 10.2.0.1.0
    PL/SQL Embedded Gateway Patch 10.2.0.4.0
    Platform Required Support Files 10.2.0.1.0
    Platform Required Support Files 10.2.0.4.0
    Precompiler Common Files 10.2.0.1.0
    Precompiler Common Files Patch 10.2.0.4.0
    Precompiler Required Support Files 10.2.0.1.0
    Precompiler Required Support Files Patch 10.2.0.4.0
    RDBMS Required Support Files 10.2.0.1.0
    RDBMS Required Support Files for Instant Client 10.2.0.1.0
    RDBMS Required Support Files for Instant Client Patch 10.2.0.4.0
    RDBMS Required Support Files Patch 10.2.0.4.0
    regexp 2.1.9.0.0
    Required Support Files 10.2.0.1.0
    Sample Schema Data 10.2.0.1.0
    Sample Schema Data Patch 10.2.0.4.0
    Secure Socket Layer 10.2.0.1.0
    Secure Socket Layer Patch 10.2.0.4.0
    SQL*Plus 10.2.0.1.0
    SQL*Plus 10.2.0.4.0
    SQL*Plus Required Support Files 10.2.0.1.0
    SQL*Plus Required Support Files Patch 10.2.0.4.0
    SQLJ Runtime 10.2.0.1.0
    SQLJ Runtime Patch 10.2.0.4.0
    SSL Required Support Files for InstantClient 10.2.0.1.0
    SSL Required Support Files for InstantClient Patch 10.2.0.4.0
    Sun JDK 1.4.2.17.0
    Sun JDK extensions 9.2.0.1.0
    XDK Required Support Files 10.2.0.1.0
    XDK Required Support Files Patch 10.2.0.4.0
    XML Parser for Java 10.2.0.1.0
    XML Parser for Java Patch 10.2.0.4.0
    XML Parser for Oracle JVM 10.2.0.1.0
    XML Parser for Oracle JVM Patch 10.2.0.4.0
    There are 190 products installed in this Oracle Home.
    There are no Interim patches installed in this Oracle Home.
    OPatch succeeded.
    $
    $ more /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch_history.txt
    Date & Time : Fri Jul 17 16:02:17 GMT-03:00 2009
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    OPatch Ver. : 10.2.0.4.7
    Current Dir : /u02/app/oracle/product/10.2/Db_1
    Command : -v
    Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_16-02-17PM.log
    Date & Time : Fri Jul 17 16:38:05 GMT-03:00 2009
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    OPatch Ver. : 10.2.0.4.7
    Current Dir : /home/ora10g/8534387
    Command : napply -skip_subset -skip_duplicate
    Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_16-38-05PM.log
    Date & Time : Fri Jul 17 17:53:30 GMT-03:00 2009
    Oracle Home : /u02/app/oracle/product/10.2/Db_1
    OPatch Ver. : 10.2.0.4.7
    Current Dir : /home/ora10g/8534387
    Command : lsinventory -detail
    Log File : /u02/app/oracle/product/10.2/Db_1/cfgtoollogs/opatch/opatch2009-07-17_17-53-30PM.log
    $
    Please let me know if you need more info.
    Regards, and thanks in advance!
    Martin

    You were right. It was a permissions issue:
    hostname:/root# ls -ltr /u02/app/oracle/product/10.2/Db_1/lib/libjox10.so
    -r-xr-xr-x 1 ora10g oinstall 20041728 Apr 23 2008 /u02/app/oracle/product/10.2/Db_1/lib/libjox10.so
    Thanks.
    damorgan wrote:
    "is not writeable." means one of two things.
    1. It does not exist.
    2. Permissions are not set correctly.
    Determining which it is ... that is the first step.

  • How to copy file from server to another machine in network through JSP

    Hello!
    any body can solve my problem.
    i m working in JSP. i want to copy a file from server on which JSP engine is running to another computer in the same network.
    i used Java File Object to copy file from one machine to another in network. and its working fine on network. but the problem is when i used the same code in web page there is exception which is Access is Denied. what i should do now.
    i m writing the code i m using in my JSP page
    String fileToCopy = "C:/oracle/Apache/Apache/htdocs/FAO/FAO_MiddleFrame.jsp";
         String destinationDir = "\\\\af09\\c";
    File source = new File(fileToCopy);
    String fileName1 = source.getName();
    if ((!destinationDir.endsWith("\\")) && (!destinationDir.endsWith("/"))) {
    destinationDir = destinationDir + "\\";
    File destination = new File(destinationDir + fileName1);
    if (!destination.exists()) {
    if (!destination.createNewFile()) {
    //throw new IOException("Unable to create file. May be you don't have permissions.");
    byte[] buffer = new byte[1024];
    FileInputStream in = new FileInputStream(source);
    FileOutputStream outStream = new FileOutputStream(destination);
    int bytesRead = 0;
    while ((bytesRead = in.read(buffer)) != -1) {
    outStream.write(buffer, 0, bytesRead);
    out.println("File copied successfully ....");
    plz reply me as soon as possible.
    i will be very thankful
    Saad

    Thats the way it works. Cause servlet contaner doesnot allow other machines in the network to access other than machine which it came from as in case of applets. What you can do is if the other machine is also based on webserver or app server .. you can upload the file as it gets to that page do the process.
    I would like to hear more on my comments..
    Suggestions ??
    Ban

  • Download all excel files from sharepoint location to local folder

    Hi,
    How to I copy all excel files stored at sharepoint location to local folder?
    Regards,
    Nidhi

    Hi NidhiP,
    To download Excel files from a SharePoint library by using SSIS, we need to make use of the Script Task. In the Script Task, we can use the methods provided by
    Lists Web Service to work with SharePoint files, and then use the
    WebClient.DownloadFile Method or
    FileStream Class to transfer the files from SharePoint to local file system.
    For the code examples, please refer to:
    http://www.codeproject.com/Questions/457161/how-to-download-files-from-Sharepoint-document-lib?tab=mostrecent 
    http://blogs.msdn.com/b/sowmyancs/archive/2007/09/15/how-to-download-files-from-a-sharepoint-document-library-remotely-via-lists-asmx-webservice-sps-2003-moss-2007.aspx 
    http://sqlblogcasts.com/blogs/drjohn/archive/2007/11/04/downloading-excel-files-from-sharepoint-using-ssis.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • Finder error code -36: Copy file from macOS to external HD then copy it back to macOS: got error code -36

    Hi all,
    I got this error whenever copy file from my external HD to my macbook (internal HD).
    For more detail:
    last week, i copy a lot of my folder to external HD then i format my macbook to install new MacOSX Maverick.
    But when i copy my file back to my laptop, i got a lot of file with message:
    The Finder can't complete operator because some data in "some file name here" can't be read or written.
    (Error code -36)
    I try to research a lot of time on google and apple support communities but i still can not solve this problem.
    Someone, please help me and guide me how to solve this error because almost my file is my working data.
    Some infomation:
    My last version of my macbook: MacOS 10.9.3
    New version installed on my macbook: MacOS 10.9.3
    I just only copy file from my macbook to external HD without doing anything.
    Then i format my macbook to install new MacOS 10.9.3
    When i copy my file back, this error is happened.
    I try a lot of way like dot_clean, disk utility verified, repair, ....

    The files may be from the old user account and not accessible from the new one. I found this article, though see that it may not be current.:
    http://support.apple.com/kb/ts1402
    Pondini's guide also covers this topic, but it may be hard to find the relevant bit of information.
    http://pondini.org/OSX/Transfer.html
    In future, use Time Machine or Carbon Copy Cloner to make a complete backup of your system onto an external disk, before doing an erase/install.  Then you can use Transfer Assistant to bring your data and apps across.

  • Download older version of a file from SharePoint Document Library using CSOM and 404 error

    Hi,
    I am trying to download previous versions including Major and Minor versions of documents from SharePoint Online using CSOM. I get 404 error when I try to download the file. I found several posts on various discussion forums where people are getting same
    error but none of those have any solution/answer. Below is one of the threads and sample code I have tried that results in 404 error. If I use the link in browser directly, I am able to download the file. Also I am able to download the current version of file
    using CSOM without any problem, it is only the older versions that give me 404 in CSOM.
    http://qandasys.info/how-to-download-the-historical-file-version-content-using-csom/
    public int GetStreamFromFile(string docid, string lib, string fileurl, ClientContext clientContext, int iuserid, string Version, bool isCurrrent)
    if(!isCurrent)
    List LibraryName = clientContext.Web.Lists.GetByTitle(lib);
    clientContext.Load(LibraryName);
    clientContext.ExecuteQuery();
    CamlQuery camlQuery = new CamlQuery();
    camlQuery.ViewXml = "" + fileurl +
    Microsoft.SharePoint.Client.ListItemCollection collListItem = LibraryName.GetItems(camlQuery);
    clientContext.Load(collListItem, items => items.Include(item => item.Id, item => item["FileLeafRef"], item => item["LinkFilename"],
    item => item["FileRef"], item => item["File_x0020_Size"], item => item["DocIcon"], item => item.File.Versions));
    //clientContext.Load(collListItem);
    clientContext.ExecuteQuery();
    foreach (Microsoft.SharePoint.Client.ListItem oListItem in collListItem)
    //string fileurl1 = (string)oListItem["FileRef"];
    //string filename = (string)oListItem["LinkFilename"];
    foreach (FileVersion version in oListItem.File.Versions)
    if (Version == version.VersionLabel)
    //Added excutequery to get object one more time as per blog
    //http://social.technet.microsoft.com/Forums/de-DE/sharepointdevelopmentprevious/thread/88a05256-8694-4e40-863d-6c77512e079b
    clientContext.ExecuteQuery();
    FileInformation fileInformation = ClientOM.File.OpenBinaryDirect(clientContext,version.Url);
    bytesarr = ReadFully(fileInformation.Stream);
    Darwaish

    Hi,
    According to your description,
    I know you want to get older version of a file from SharePoint Document Library using Client Object Model.
    The following code snippet for your reference:
    public void GetVersions()
    ClientContext clientContext = new ClientContext(“http://SPSite”);
    Web site = clientContext.Web;
    clientContext.Load(site);
    clientContext.ExecuteQuery();
    File file = site.GetFileByServerRelativeUrl(“/Shared Documents/mydocument.doc”);
    clientContext.Load(file);
    clientContext.ExecuteQuery();
    ListItem currentItem = file.ListItemAllFields;
    clientContext.Load(currentItem);
    clientContext.ExecuteQuery();
    FileVersionCollection versions = file.Versions;
    clientContext.Load(versions);
    clientContext.ExecuteQuery();
    if (versions != null)
    foreach(FileVersion _version in versions)
    Console.WriteLine(“Version : {0}”,_version.VersionLabel);
    More information:
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.client.file.versions.aspx
    Best Regards,
    Dennis Guo

  • Copy-Paste From Other Apps (like PPT 2004) Into CS5 Broken ? -  OS 10.6.3

    Hi,
    New Mac, so to avoid problems went for the new post-Snow Leopard Photoshop CS5. Oops.
    Copy-Paste From Other Apps Into CS5
    Pasting images/photos from Powerpoint 2004 to CS5, I experienced the exact problem posted slightly off topic by james norrington in the thread "CS5 does not let me copy & paste file names."  It was not answered and is quoted here:
    ---"I am using CS5 Photoshop and Office 2004 on 10.6.3. I was using 10.4 until a few weeks ago and it worked and still works with other macs in the office using CS4. I can copy and paste from powerpoint but it cuts the pictures in half and does not know what the res. of the image is. Also when I go from photoshop to powerpoint the image res. is also not preserved."---
    Besides that, I also found copy-paste from a digital camera photo.jpg from Preview to CS5 doesn't respect the resolution either. Directly opening the photo into PS CS5, fine.
    From the earliest PS, always was able to copy any image to clipboard, have a new document dialog box come up pre-filled with correct original WxH pixels, original resolution, color mode, etc., and just paste into the new document - perfect fit (even the oddball PPT 576 ppi). Now a shift and cut-off.  Don't have PPT 2008 to test pasting from there.
    I have also found that a similar but less severe image cut off happens when copy-paste from PPT -> Preview, or -> TextEdit, or ->  drag and drop picture clipping.
    Opening Image File in CS5
    Even an original 300 dpi tiff file wrongly went to 72 ppi etc. when opened directly into CS5. Converted the file to a jpeg in Preview - that jpeg file could be opened into CS5 correctly, reconverted the jpeg to TIFF in Preview, still opened OK (not counting loss of image quality). Still couldn't copy paste from either document into CS5 correctly. One difference I noticed in the converted files was that more information was available in the Preview file info. Maybe that made the difference in opening the file correctly.
    I'd welcome any suggestions. Thanks.
    ---detail of tiff file ---
    original
         GENERAL
         Color Model: RGB
         Depth: 8
         DPI Height: 300
         DPI Width: 300
         Pixel Height: 1033
         Pixel Width: 1315
         TIFF
         Compression: LZW
         Photometric Interpretation: RGB
         Software: Image-Pro Plus
         Y Resolution: 300
    After conversion to jpeg in Preview"
    GENERAL
         Color Model: RGB
         Depth: 8
         DPI Height: 300
         DPI Width: 300
         Orientation: 1 (Normal)
         Pixel Height: 1033
         Pixel Width: 1315
    EXIF
         Pixel X Dimension: 1315
         Pixel Y Dimension: 1033
    TIFF
         Color Model: RGB
         Depth: 8
         DPI Height: 300
         DPI Width: 300
         Orientation: 1 (Normal)
         Pixel Height: 1033
         Pixel Width: 1315
    ----END---

    Thanks to Chris for the explanation of the dueling clipboards.
    It's still frustrating, but since I still have a CS2 license from the dead G4 the current Mac replaced, I can try that (wonder if they can coexist), or maybe I could use an older Mac for this particular situation.
    As for the .tif file, it was generated by a Mac OS 8.5 era image capture program that we are forced to use, and the analysis was that the app does not properly encode the TIFF tags to acceptable standards. Preview 5.0.2 just guessed right from the little information that was included - but it didn't work when tried with Preview 3.0.9 on an OS 10.4 Mac. So this was a unique situation.

  • Can't open Excel files from Sharepoint 2013

    I am having an issue with opening Excel files from SharePoint 2013. If I click on an excel file it comes up with the error below.
    If I click Try again I get the message below also:
    If I try to open Word or PDF files they open correctly in the appropriate client and I have the option of checking them out and editing them. Any ideas why this would only be happening to Excel files?
    Thanks,
    Shaun

    Hi Shaun,
    I understand that the Excel files cannot be opened from SharePoint in Microsoft Excel.
    Can these files be viewed in the browser?
    I recommend to download a copy of the files with issue and then open them in Excel to see if the issue still occurs.
    If above cannot work, I recommend to repair Office.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Moving instead of copying files from my camera

    When I use Lightroom to move photos from my camera to my computer, I want it to automatically delete the copied files from my camera. How do I do this?

    MIDI Panic wrote:
    It would be nice if the Lightroom developers would allow us to turn “ON” the ‘Move’ function for flash media in Preferences (maybe even with a pop-up warning that mistakes could result in lost files). That way Lightroom could be customized for more efficient workflows, less complexity for us consumers who are not so worried about the occasional lost import.
    Good to hear! Two additional points against using 'Move' that no one has mentioned, and a few more tips:
    1) When using 'Move' to transfer your images from memory card to hard drive you lose the ability to perform even the simplest integrity check for file count and size. I always use Windows Explorer to compare the actual HDD file count and and folder size to that of the memory card contents. It only takes a few seconds!
    2) Letting LR delete individual image files puts additional stress on the memory card and takes additional time. Doing an 'in-camera' card format takes the least time, writes to the least number of memory locations (i.e. least stress), AND insures integrity and compatibility of card's the file allocation table.
    3) Don't forget to make a 2nd 'Copy' of your image files to a backup drive.
    May your image files 'Live Long & Prosper!'

  • Pulling .xlsx files from Sharepoint Using ssis

    Hi,
             I need to create package to pull the .xlsx files from sharepoint and load into another server and make the package automated everyday. I was not familiar with SSIS stuff. I came to know it can be done by using file task
    and FTP, but not able to figure it out the configuration setting that should be used in the tasks.
                            Can anybody suggest the procress for this task?
    Thanks,
    Sri Harsha.
    BALUSUSRIHARSHA

    Hi Sri,
    These sites are right.
    SharePoint exposes file retrieval via the HTTPWebResponse interface only. So the FTP Task cannot help you in this case.
    I know it may be not easy coding in C# without programming skills but one day you need to start as SSIS without C# or VB is not fully usable anyways.
    Luckily there is this community wiling to help you for free and a ton of examples already on the web.
    If you could try to modify the code from http://blogs.msdn.com/b/sowmyancs/archive/2007/09/15/how-to-download-files-from-a-sharepoint-document-library-remotely-via-lists-asmx-webservice-sps-2003-moss-2007.aspx so it makes sense in application to what you
    need to achieve that would be great.
    If you get issues, do not hesitate to post on our forum.
    Arthur
    MyBlog
    Twitter

  • Hyperion DIM (Data integn mgmt/Informatica) - Create Workflow to copy files

    Hello,
    I understand this is an ODI forum but I could not find a Oracle Hyperion DIM forum and so I thought some of you might know DIM. This should be easy for those who have Informatica experience.
    So we are using WinSCP for copying files from one folder to the other.
    Those who do not know what WINSCP is - it is a simple to tool used to conduct secure file transfer b/w local and remote desktop.
    We are doing this file copy from one folder to the other on a repeat basis and we would like to automate the workflow using DIM.
    Well, the task is that I basically log on to WinSCP by providing a hostname, username and password and from a specific folder I have to pick up a file and drop it into a different folder.
    I need to create a workflow to do this so that it may be automated. Can anybody suggest ideas on which tasks I may use within DIM and the general approach? This would be great help. Thanks.
    -- Adi

    Hello,
    I understand this is an ODI forum but I could not find a Oracle Hyperion DIM forum and so I thought some of you might know DIM. This should be easy for those who have Informatica experience.
    So we are using WinSCP for copying files from one folder to the other.
    Those who do not know what WINSCP is - it is a simple to tool used to conduct secure file transfer b/w local and remote desktop.
    We are doing this file copy from one folder to the other on a repeat basis and we would like to automate the workflow using DIM.
    Well, the task is that I basically log on to WinSCP by providing a hostname, username and password and from a specific folder I have to pick up a file and drop it into a different folder.
    I need to create a workflow to do this so that it may be automated. Can anybody suggest ideas on which tasks I may use within DIM and the general approach? This would be great help. Thanks.
    -- Adi

  • Why when  i copy files from downloads to a new folder,then i delete them from the downloads i will loose the file?

    tell me please when i copy files from downloads  it will be a new file with new capacity? i mean if a file is 2 mb, when i copy it it will be new 2mb ?

    If you copy it to another folder, e.g., Documents, and you can see it in the Downloads folder then you now have two copies of the file. If you delete one copy, the other stays intact. If you keep both, there is no harm, although the amount of disk space used is twice as big as when you only keep one copy.

  • Why cant i copy file from my macbook to my portable harddrive?

    i just bought a new macbook. i'm kinda newbie. i tried copying file from my macbook to portable harddive. it didnt work. can anyone tell me why? by the way, my harddrive is NTFS system. the funny thing is that i can copy file from my harddrive to my macbook.
    thanks for the kind soul out there.
    mac book Mac OS X (10.4.9)

    The easiest way around this is to reformat the external drive to be FAT32 if you want to use it with other PCs, or HFS+ if you only want to use it with Macs. You will lose all the data off the drive when you do this.
    You can reformat the drive using Disk Utility.

  • Can't copy file from SAP-directory to FTP server

    Hello,
    I can't copy files from the SAP server to the FTP server. The file is created with OPEN DATASET and CLOSE DATASET commands and is placed in the SAP-directory S:\usr\sap\DEV\DVEBMBGS00\work.
    I can see and read the file with transaction al11, so I know it's there.
    But the FTP command always gives the same error:
    S:\usr\sap\DEV\DVEBMBGS00\work\[FILENAME] errno 22: invalid argument
    I can connect to the FTP, but the put command keeps failing. Somehow, the file in the SAP directory can't be read, it seems, even when
    Any ideas?
    Thanks in advance.
    Dave

    Ok, I found out that I have to use SAPFTPA as RFC destination type, instead of SAPFTP, otherwise the folders can't be located.
    But with SAPFTPA I can't seem to connect to the FTP server. I've tested the connection with sm59 and it works, but for the FTP it doesn't work. When I use SAPFTP as destination type, it still works.
    What can I do?
    Thanks.

Maybe you are looking for