Office files protected with AD RMS Client / SDK and Office

Hello,
I'm facing a strange issue when it comes to open an office file that was protected with AD RMS Client (to be precise, with an application built with AD RMS SDK 2.1). I would like to understand the reasons behind this issue (maybe some missing or wrong configuration)
or if this is just a gui only problem that does not affect the correct behaviour of the whole suite.
I'm not using templates.
If I protect an office file directly from MS Word (for example, but we have the same with Excel and Powerpoint) and save it, then I can close it and re-open it. The following infobar is displayed:
Now with AD RMS SDK 2.1 we have developed a standalone program that applies the same permissions on office files via the AD RMS Client. When the file is re-opened, the following infobar is displayed:
"Do Not Forward" is shown, no reference to email permissions was added by the client. The description is wrong too, as print permission has been granted, for example.
Is this behaviour correct?
How is this infobar created?
Is there a setting (either in client or in server) that may be wrong, and that leads to this issue?
Thank you,
 Massimiliano

Thanks to Microsoft response, this issue has been resolved.
The license handle needs some additional properties to be set, in order for Office to display this information correctly.
IpcSetLicenseProperty(licenseHandle, FALSE, IPC_LI_DESCRIPTOR, pIpcTemplateInfo);
The last parameter is a PIPC_TEMPLATE_INFO pointer to a structure of type IPC_TEMPLATE_INFO where
wszName and wszDescription are filled with valid values.

Similar Messages

  • Problem with setting Created, Modified, Author, Editor on file i Site Collection from Client SDK

    Hello,
    I have a piece of code that is used for converting files from a shared file area to SharePoint for customers that move to SharePoint and Dynamics CRM. The relation to Dynamics CRM calls for using custom code an not existing conversion tools.
    The code I wrote works fine if the file sent to a regular site in SharePoint, but if I try to use the same code for files in the Site Collection. If I use the address for the site collection in the constructor for the ClientContext, and the relative URL
    from that for the file, both the upload and the setting of the attributes fails (I do make sure the file is there before trying to set the attributes).
    After some experimentation I am able to upload the file, by creating the client context with the main site URL, and adding the site collection path elements ("/sites/crm") to the path for the file, but using the same the setting of the attributes
    fails.
    I have tried some other variant where the site collection elements are in the path for both the ClientContext and the file path. Then the upload fails, the file retrival (GetFileByServerRelativeUrl) works, but the retrival of the attributes then fails.
    The code below illustrates the variations.
    Can someone please explain what I am doing wrong, or is this a bug in the SDK?
    Regards
    Anders
    using System;
    using System.IO;
    using System.Security;
    using Microsoft.SharePoint.Client;
    using File = System.IO.File;
    using SP = Microsoft.SharePoint.Client;
    namespace TestSharePointDocumentAttributes
        class DocumentAttributeTester
            public void Execute(string[] args)
                string userId = args[0];
                string password = args[1];
                string filePath = @"C:\work\TestCV1.docx";
                string siteUrl;
                string documentPath;
                string clientContextUrl;
                string serverRelativeUrl;
                DateTime createdDate = new DateTime(2013, 2, 1, 11, 20, 45);
                DateTime modifiedDate = new DateTime(2013, 3, 1, 11, 40, 45);
                string fileName = Path.GetFileName(filePath);
                SecureString securePassword = new SecureString();
                foreach (char c in password.ToCharArray())
                    securePassword.AppendChar(c);
                // Pass 1, no site collection
                Console.WriteLine("Pass 1");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/crmn_candidate/TestSPAttributes" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 2, site collection, parameters as expected, both upload and set attributes fails (even if file exists)
                Console.WriteLine("Pass 2");
                clientContextUrl = "https://losangas.sharepoint.com/sites/crm";
                serverRelativeUrl = "/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 3, site collection, parameters adjusted. Upload works and set attributes fails.
                Console.WriteLine("Pass 3");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/sites/crm/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
                // Pass 4, site collection, parameters adjusted. Upload works fails, but GetFileByServerRelativeUrl succeds and load items fails
                Console.WriteLine("Pass 4");
                clientContextUrl = "https://losangas.sharepoint.com";
                serverRelativeUrl = "/sites/crm/kontakter/N/Test1" + '/' + fileName;
                upload(clientContextUrl, serverRelativeUrl, userId, securePassword, filePath);
                setVariables(clientContextUrl, serverRelativeUrl, userId, securePassword, createdDate, modifiedDate);
                Console.WriteLine();
            private void upload(string clientContextUrl, string serverRelativeUrl, string userId, SecureString securePassword, string filePath)
                try
                    byte[] fileContents = File.ReadAllBytes(filePath);
                    string fileName = Path.GetFileName(filePath);
                    ClientContext clientContext = new ClientContext(clientContextUrl);
                    clientContext.Credentials = new SharePointOnlineCredentials(userId, securePassword);
                    SP.File.SaveBinaryDirect(clientContext, serverRelativeUrl, new MemoryStream(fileContents), true);
                    Console.WriteLine("Upload successful.");
                catch (Exception ex)
                    Console.WriteLine(string.Format("Upload error: {0}", ex.Message));
            private void setVariables(string clientContextUrl, string serverRelativeUrl, string userId, SecureString securePassword, DateTime createdDate, DateTime modifiedDate)
                try
                    ClientContext clientContext = new ClientContext(clientContextUrl);
                    clientContext.Credentials = new SharePointOnlineCredentials(userId, securePassword);
                    Microsoft.SharePoint.Client.File uploadedFile = clientContext.Web.GetFileByServerRelativeUrl(serverRelativeUrl);
                    clientContext.ExecuteQuery();
                    ListItem listItem = uploadedFile.ListItemAllFields;
                    List list = listItem.ParentList;
                    clientContext.Load(uploadedFile.ListItemAllFields);
                    clientContext.ExecuteQuery();
                    FieldUserValue author = FieldUserValue.FromUser("Elisabeth Skaane");
                    FieldUserValue editor = FieldUserValue.FromUser("Elisabeth Skaane");
                    listItem["Created"] = createdDate.ToString("MM.dd.yyyy HH:mm:ss"); // i.e. "6/5/2012 10:19" 
                    listItem["Modified"] = modifiedDate.ToString("MM.dd.yyyy HH:mm:ss"); // i.e. "6/5/2012 10:19" 
                    listItem["Author"] = author;
                    listItem["Editor"] = editor;
                    listItem.Update();
                    clientContext.ExecuteQuery();
                    Console.WriteLine("Set attributes successful.");
                catch (Exception ex)
                    Console.WriteLine(string.Format("Set attributes error: {0}", ex.Message));

    Hello,
    Thanks for your effort, but you are not addressing the problem.
    As I tried to explain, setting the date works fine in the case where there is no site collection involved. There is no reason to believe that this will be different when in a site collection. Also the logon works fine in borth cases. The FieldUserValue.FromUser
    can take either an email, or a prefered name. I tested both.
    Anders

  • Stability problems with Microsoft PlayReady Client SDK for Android v 3.0

    Hi,
    We have begun working with the Microsoft PlayReady Client SDK for android v3.0 and on android 4.4 + we are experiencing the following problems on a nexus 7 (Android 4.4.4) and another nexus 7 (Android
    5.0)
    Doing a seekTo(new position), getDuration is returning a wrong value.
    Changing audio on .ismv with multiple audio tracks results in bad/random performance on progress of the video and general instability in playback
    Are these known issues and if so is there a known workaround or a scheduled date for a fix?
    Thanks

    Please email  [email protected] for this question. Azure Media Services doesn't provide client SDK.Thanks.

  • Can't open .pps file protected with KN'09

    Hello All,
    Can't open Powerpoint .pps protected file with KN'09 on macbook snow-Leopard.
    any help is appreciated
    Thanks a lot

    Hello All,
    No body can help me ???
    I try to give you more details:
    Keynote read easily all *.pps or *.ppt, but when those files are password protected, neither
    MS Office 2008 for mac nor Keynote '09 nor changed .pps to .ppt still can't read thoses files. Website : http://www.canhnongminhduc.com/Pages2010/hinhanhPPSOwners2M10.php?owner=TS
    When I try to read those files, an error message displayed : Importation "Error : the file ... is encrypted. Try to save it without encrypted!"
    the error message is ambiguous:
    1/ if file is protected, means the owner didn't want everybody to changed the content.
    2/ We don't know the owner how can we as to give the file without encrypted???
    That is a shame that Keynote did not think to give us the possibility to READ ONLY the file.
    Hopelessly find a workarround for this situation.
    regards,
    Bichnm

  • Install PeopleTools 8.53 with Linux Issue: Client Windows and Server Linux

    Folks,
    Hello. I am installing PeopleTools 8.53 Internet Architecture. Database Server is Oracle Dabase 11gR1. OS is Oracle Linux 5. I have installed JDK7, WebLogic 10.3.6, Tuxedo 11gR1 and PeopleTools 8.53 successfully into Oracle Linux 5.
    Now, I am setting up PeopleTools8.53 Database. Because the Install Wizard has problem, I set up PeopleTools 8.53 Database manually using Oracle starter database instance named PT853. We need to run Data Mover script in a Windows Client machine to populate PeopleSoft Database instance in Linux Sever machine.
    Let's assume:
    VM1: Server machine - Oracle Linux 5
    VM2: Client machine - Windows XP 
    Nicolas has this tutorial:
    http://gasparotto.blogspot.com/2008/01/on-peoplesoft-road-peoplesoft-database_10.html
    From step 15 to step 23, Nicolas does not explain how to connect VM2(client) with VM1(server) and load data from VM2 to VM1.
    My questions are:
    First, do we need to install PeopleTools 8.53 Windows version into the Client machine Windows XP while installing PeopleTools 8.53 Linux version in the Server machine Oracle Linux 5 ?
    Second, how to connect VM2 with VM1 and then load data from VM2 to VM1 ?
    Thanks.

    So if I understand correctly, you have already created the oracle instance in the Linux machine. Then there is no need to install the Tools again in the Linux machine unless you want to run data mover at Linux.
    You can just install the tools and oracle client in windows and load the data by running the data mover from windows. Connection happens through Oracle Client using TNS.
    Steps involved are
    1. Creating the database using createdb10.sql or otherwise (you have already done this)
    2. Run utlspace.sql
    3. Run dbowner.sql
    4. Run ptddl.sql - considering that you are just installing a Tools database and not any application database
    5. Run psadmin.sql
    6. Run psroles.sql
    7. Run connect.sql
    Create the data load dms file by using DBSETUP in data mover
    Run the created script and load the data
    This information is available in any peopletools installation doc
    Hope this helps

  • FILE- EMAIL with pdf as an attachment and message body.

    I have a scenario where FILE to EMAIL with PDF as an attachment; I also need to send to have Email body with some text. For this i have tried using Mail Package then i wont be receiving any attachment. If I use both Mail package + Keep attachments i do not see any attachments in mail.
    Let me know  the possible ways that can used in the current scenario where i need to send pdf attachment along with messsage body.
    Thanks in advance,
    nik

    Hi Nik
    To get the customized email body you need to use the Mail package. Keep attachments tab should be selected
    Now sending PDF attachment - Do you need to send data passed by File adapter as pdf attachment or File adapter is reading message other than this attachment.
    Case 1. File adapter send message that you need to send as email attachment. Then using mail package use
    <content_type>application/pdf</content_type>
    you can even add name of the file going as an attachment.
    <content_type>application/pdf;name="filename.pdf"</content_type>
    Secondly you can use the MessageTransformBean at communication channel as an additional standard module.
    Case2: You need to pick file from file adapter as attachment. that is possible only when you use NFS with this file you read as source and attachment has be of same name type eg: you read input.txt then attachment has to be input.pdf
    Thanks
    Gaurav
    Edited by: Gaurav Bhargava on Oct 7, 2008 5:46 AM

  • Files associated with user's mailbox database and reverent directory path (exchange 2010)

    Hi,
    I want to know all the files and other associated types of log files with particular user's mailbox database in exchange 2010 & its reverent directory path . Please suggest
    Aditya Mediratta

    Hi,
    If you want to view the database file path and associated log file path, you can use the following command.
    Get-MailboxDatabase "Mailbox Database" | fl *path
    Default path is C:\Program Files\Microsoft\Exchange Server\V14\Mailbox\Mailbox Database
    Best regards,
    Belinda Ma
    TechNet Community Support

  • File Sharing with MacPro, G3 B/W and Powerbook G4

    I am attempting to network 3 computers. I am using wired router. I have all IP addresses set. Here is the problem. If I want to connect as registered user, I have to use a password. I know my password, but it is being rejected. I reset the password using the Start Up CD, got confirmation of the change, and still, my password is rejected. I need a way of resetting my password.
    I can connect as GUEST to and from all computers, but not the way I would like. All folders in all computers are set for sharing... but, I can connect FROM G4 to MacPro, only as GUEST and I get all drives, including an attached external drive. From MacPro to G4, only as GUEST, and I can only get DropBox. From MacPro to G3 only as GUEST and only DropBox. From G3 to G4 as registered user (password works) and I get all drives. From G4 to G3 as registered user (password works) and I get all drives.
    I have the same password on all 3 machines. I did not attempt a password reset on G3 or G4 because they work with password. I reset password on MacPro only, and got confirmation of change... but still will not work.
    I hope that was not too confusing.
    So, do I need to attempt a password reset on the MacPro again or is there something else to attempt???

    When connecting TO Mac OS X, you are connecting to a specific account, not to the Computer per se.
    When starting from OS 9, the computer where you are typing always tries to be helpful and suggests a name from the names IT knows. It actually has NO IDEA, and you should replace the name it suggests with the account-name you know on the remote Mac OS X computer. The number of bullets shown for the password is a standard number and implies NOTHING about the password length.
    If this connect-to account has Mac OS X Admin rights, you get to see everything on the Mac OS X computer because that is what an Admin would be able to see if logged on directly.

  • File exists() with dirs like "docume~1" and other shorted paths on windows

    Hello All
    I've been having troubles when using "shorted" paths like "C:\docume~1\...."
    Unfortunatelly i have to parse the output of another program which gives me the way "docume~1" instead of "documents and settings"
    The thing is that when i use something like
    File path = new File ("C:\docume~1\....");
    boolean out = path.exists();
    out is always false for this kind of paths, while when other normal paths i have no problems. Is there any way to "translate" it on the fly, or make this reduced names to be recognized by Java?

    8.3 notation using "~" works for me.
    File path = new File ("C:\docume~1\....");Might be a typo, but make sure to escape the backslash in string constants, i.e.:
    File path = new File("C:\\docume~1\\...");

  • RMS Client support for ADFS 3 with MFA

    We are using Azure RMS. The Users are synchronized from on-premise AD onto Azure AD. If we configure the Relying Party Trust for Azure RMS authentication with MFA (Multi-Factor-Authentication like SMS, OneTimeToken...), the User couldn't login from a Windows
    Client with the RMS Client installed.
    The reason is, that RMS Client only ask for username and password. A another box for OTP, SMS Code and so on doesn't appears.
    Because the login into Azure RMS to get access to protected documents is very sensitive, it should be able to using MFA with the RMS Client.
    Are there a timeline to implement MFA support in the RMS Client (e.q. for Windows)?
    Thanks for your help.

    Office apps have historically required app passwords since they didn't support MFA. Newer Office apps are now using modern authentication that allow sign-in through ADFS and/or Azure AD. If MFA is enabled in Azure AD for federated accounts, the primary
    authentication should be done by ADFS, after which Azure AD will perform the MFA. The new Android apps came out later than the new iOS apps. There is a blog post put out by the Office team with details on the modern auth for their apps at
    http://aka.ms/officemodernauth.

  • AD RMS Client 2.x and Office 2010

    Hi,
    I am implementing AD RMS and the company has computers with Office 2010 and some computers with Office 2013. I know that Office 2013 works witch AD RMS Client 2.x. My question is If Office 2010 can works with AD RMS Client 2.x or only it works with AD RMS
    Client 1.0?
    Thanks,

    Hi there!
    Office 2010 will NOT use ADRMS 2.x Client!
    Office 2013 or Sharepoint 2013 during installation, install ADRMS Client 2.x and use it out of the box...
    Did my post help you or make you laugh? Don't forget to click the Helpful vote :) If I answered your question please mark my post as an Answer.

  • File T3 with Clustering

    I am having problems configuring File T3 with clustering. Is there a special way you need to configure your cluster? If you choose to write to the file system, where is the file kept within the cluster? Locally on each server? Also, can you access a networked share?
              

                   No, you can't specify an entire filesystem as something to cluster. I
              suggest using NFS or some shared filesystem and then running a cluster
              off of that.
                                       - Mike
              Michael Lenart wrote:
              >
              > yes
              > "Mike Benham" <[email protected]> wrote in message
              > news:[email protected]..
              > >
              > >
              > >
              > > I'm not sure if I understand what you're asking. How can you cluster a
              > > filesystem? It seems like you want to mount some filesystem via NFS and
              > > then access that from each instance of a server? Are you asking if
              > > Weblogic can perform the duty of NFS?
              > >
              > > - Mike
              > >
              > >
              > > Michael Lenart wrote:
              > > >
              > > > Can the file system be clustered?? For example, in the cluster level
              > > > property file can I have a file system with the name of XDrive and then
              > use
              > > > that file system in my components??
              

  • Cannot get into mac. I get a white screen and flashing file folder with question mark inside. What can I do?

    2012/13 MacBook Pro froze up, so I did a hard shut down. Now, when I try to start up, it makes 3 unusual beeps, then I get a white screen. After a couple minutes, a flashing file folder with a question mark appears and remains. What is wrong and what can I do to fix it.

    Three beeps usually means a RAM or RAM slots problem. The Question Mark means there is no bootable system found.
    A flashing question mark or globe appears when you start your Mac
    Question (?) Mark, Blinking Folder, or Gray Screen at Startup
    These are related but not identical issues. Their causes are outlined in Intel-based Mac- Startup sequence and error codes, symbols. Solutions may be found in:
    A flashing question mark or globe appears when you start your Mac
    Mac OS X- Gray screen appears during startup
    In most cases the problems may be caused by one or more of these:
    a. Problem with the computer's PRAM - See Resetting your Mac's PRAM and NVRAM.
    b. Boot drive's directory has been corrupted - Repair with Disk Utility.
    c. Critical system files are damaged or deleted - Reinstall OS X.
    d. The disk drive is physically non-functional - Replace the hard drive.
    Note that the information I have provided is what Apple recommends, If other users suggest different solutions than found here, then be sure what they recommend does not impact on your warranty, if any, or ability to get continuing Apple service.
    Please don't start removing drives or changing cables unless you know what you are doing and have exhausted other non-invasive alternatives outlined here. If you perform any work yourself that is unapproved by Apple, then you will void any warranty you may have and lose all further Apple Support.
    Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    The main difference if you are using Lion or Mountain Lion is that you must first boot from the Recovery HD. Simply boot from the Recovery HD to perform the above.
    Reinstall Snow Leopard Without Erasing The drive
    1. Repair the Hard Drive and Permissions
    Boot from your Snow Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Reinstall Snow Leopard
    If the drive is OK then quit DU and return to the installer.  Proceed with reinstalling OS X.  Note that the Snow Leopard installer will not erase your drive or disturb your files.  After installing a fresh copy of OS X the installer will move your Home folder, third-party applications, support items, and network preferences into the newly installed system.
    Download and install Mac OS X 10.6.8 Update Combo v1.1.
    Reinstalling Lion/Mountain Lion Without Erasing The Drive
    Boot to the Recovery HD: Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the main menu. Repair the Hard Drive and Permissions as follows.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Continue button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • How to check if the file already exists in the client directory

    Hi all.
    I'm on devsuite 10g. I'm using webutil to download files from DB using webutil function db_to_client.
    What I need is to check if the file already exists in the client directory and if yes to display a message to ask the user if he wants to overwrite or no. How can I make this???
    Here is the code that I'm using to download the file.
    Thanks all for the collaboration.
    Fabrizio
    declare
    file_path varchar2(2000) := null;
    BEGIN
    /** I ask where saving the file on the client machine **/
    file_path:= webutil_file.file_selection_dialog
    (directory_name => null,
    file_name => :bin_docs.name,
    file_filter => '',
    title => 'Saving file',
    dialog_type => save_file, --save_file
    select_file => TRUE);
    /** I download the file from DB to client **/
    if webutil_file_transfer.DB_To_Client_With_Progress
    ( file_path ,
    'BIN_DOCS',
    'DOC' ,
    'doc_id = '||:bin_docs.doc_id,
    'Downloading file',
    ' '||:bin_docs.name) then
    msg_alert('Download del file avvenuto con successo','I',false);
    else
    msg_alert('Si è verificato il seguente errore in fase di download '||SQLERRM,'I',false);
    end if;
    end;

    How about something like the below:
    Note: I have a yes/no alert to asking if they want to over-write the existing file.
    DECLARE
    file_path VARCHAR2(2000) := null;
    over_write BOOLEAN := TRUE;
    BEGIN
    /** I ask where saving the file on the client machine **/
    file_path:= webutil_file.file_selection_dialog
    (directory_name => null,
    file_name => :bin_docs.name,
    file_filter => '',
    title => 'Saving file',
    dialog_type => save_file, --save_file
    select_file => TRUE);
    IF webutil.file_exists(file_path) THEN
    /** check a file by the same name exists in the selected directory **/
    IF show_alert('Ask_overright') != alert_button1 THEN
    /** If we say no then set over_write value to false **/
    over_write := FALSE;
    END IF;
    END IF;
    IF over_write THEN
    /** I download the file from DB to client **/
    IF webutil_file_transfer.DB_To_Client_With_Progress
    ( file_path ,
    'BIN_DOCS',
    'DOC' ,
    'doc_id = '||:bin_docs.doc_id,
    'Downloading file',
    ' '||:bin_docs.name) then
    msg_alert('Download del file avvenuto con successo','I',false);
    ELSE
    msg_alert('Si è verificato il seguente errore in fase di'
    ||' download '||SQLERRM,'I',false);
    END IF
    END IF;
    END;
    cheers
    Q

  • Php 5.1.2 doesn't seem to recognize the --with-oci8-instant-client option

    I just tried configuring php 5.1.2 with the --with-oci8-instant-client option and could never get phpinfo() to show the oci8 section...
    Finally went back and tried php 5.1.1 and it worked.
    If anyone else could verify this behavior, maybe the PHP folks should be notified??

    Discovered the issue:
    the configure script changed the format of the config option
    in php 5.1.1:
    --with-oci8[=DIR] Include Oracle (OCI8) support using an ORACLE_HOME
    install. The default DIR is ORACLE_HOME
    --with-oci8-instant-client[=DIR]
    Include Oracle (OCI8) support using
    Oracle Instant Client. DIR is the directory with the
    Instant Client libraries. On Linux it will default to
    /usr/lib/oracle/<most_recent_version>/client/lib
    Other platforms will need to have it explicitly specified
    HOWEVER, in php 5.1.2:
    --with-oci8[=DIR] Include Oracle (OCI8) support.
    The default DIR is ORACLE_HOME.
    Use --with-oci8=instantclient,/path/to/oic/lib
    to use Oracle Instant Client installation
    This explains why the --with-oci8-instant-client option is ignored.  The new format is:
    --with-oci8=instantclient,/path/to/libs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Simple Java EJB question.

    When it comes to EJB v3 Remote and Local interfaces, (With JBoss EJB Container Software in mind, for this question,) -Does the Remote interface for the EJB include method signatures from the Bean class -that are to be seen -that are to be hidden? -Do

  • Java SE 6 crashes on MacBook Pro

    I have the following problem : on my MacBook Pro I installed the latest version of java SE 6. Everything worked perfectly and suddenly each time I try to launch a 64 bit java application (like ImageJ64 or the java preference application) the applicat

  • Best path for HDV video to Apple TV.

    I use a Sony HDR-HC1 HDV to record videos and need to know the path to Apple TV that will provide the best quality. I'm showing these on a 50 inch Fujitsu 1080i Plasma. I edit the video in Imovie-HD. Can someone tell me what the best settings are to

  • How to disable edge/gprs

    hi there im using bb9300 n facing problem in it when ever i use browsing and use use facebook via wifi my balance is still decreasing as it shows that gprs/edge is on the go except the wifi what to do plz help n to make sure that i already disable th

  • SD scenario (collect few sale order into one delivery or TO)

    Hi! I am looking for following SD scenario. customer send as few orders order-1 material-1 quantity-10 input date 01.12.2009  req delivery date 20.12.2009 order-2 material-1 quantity-15 input date 03.12.2009  req delivery date 20.12.2009 order-3 mate