Unzip contents to a container in blob storage

Hi,
I have a worker role which zips a folder and its contents from the local resource and uploads it to blob storage. Is it possible to unzip the contents of the zip file to a different container in same blob storage ? 
Am using ionic.zip to zip the folder.Might be wondering why I am zipping the folder if finally needs to unzip it but what I can tell you is its one of the requirements.
- Ranjit If you found this post useful, Please "Mark as Answer" or "Vote as Helpful".

Another option is to zip it into local storage then transfer it back to a new blob container:
CloudBlobContainer container = blobClient.GetContainerReference("myfiles");
CloudBlob blob = container.GetBlobReference("2b5f8ea6-3dc2-4b77-abfe-4da832e02556/AppList/isjirleq/mydocs1.doc");
LocalResource myStorage = RoleEnvironment.GetLocalResource("myLocalStorage");
string filePath = Path.Combine(myStorage.RootPath, "mydocs1.doc");
blob.DownloadToFile(filePath);
http://stackoverflow.com/a/18853179/1280068
http://stuartdobson.net

Similar Messages

  • Sharepoint 2010 - how to move content database when RBS (remote blob storage) is enabled

    Good day.
    I have two Sharepoint Server 2010 instances - test and production.
    i've turned on RBS(remote blob storage) on test. In future i want to copy content database from prod to test. What should i do, if RBS is not enabled on production?
    And second question. After RBS is on, all new files moves to external storage. I want to move to ext storage files, that already exists in my content DB. I found that i need to create second filestreamprovider
    and execute Migrate() for new provider. Can i do this for first provider without creating second?

    Why dont you plan to use Site backup then instead of database backup
    In your case you will have to restore the backup to a RBS enabled SQL server. Then remove RBS from that database.
    http://technet.microsoft.com/en-us/library/ff628259%28v=office.15%29.aspx
    http://technet.microsoft.com/en-us/library/ff628257%28v=office.14%29.aspx
    $site=Get-SPSite "<http://yourSiteURL>"
    $rbss=$site.ContentDatabase.RemoteBlobStorageSettings
    $rbss.SetActiveProviderName("")
    If this helped you resolve your issue, please mark it Answered

  • Azure blob storage can not load file

    I am trying to follow the MSDN tutorial on creating a container in blob storage and am getting the following error:
    Additional information: Could not load file or assembly 'Microsoft.Data.Services.Client, Version=5.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The located assembly's manifest definition does not match the assembly reference. (Exception from HRESULT: 0x80131040)
    I have tried numerous stack overflow suggestions such as this
    one , to no avail. I have also tried uninstalling Azure storage, and re-installing it as well. Just in case it is helpful here is my test case for Azure storage:
    public void TestCloudStorage()
    CloudStorageAccount storageAccount = CloudStorageAccount.Parse(ConfigurationManager.AppSettings["StorageConnectionString"]);
    CloudBlobClient blobClient = storageAccount.CreateCloudBlobClient();
    CloudBlobContainer container = blobClient.GetContainerReference("pictures");
    container.CreateIfNotExists();
    Thank you in advance for your help!

    HI
    I know what happend, that's the Nuget Package error.
    Azure Storage nuget package 3.0+ have this error.
    My solution is use Azure nuget package 2.1+
    1 delete all the dll reference for Azure storage (Or recreate a new project)
    2 input below command in package Manager console
    Install-Package
    WindowsAzure.Storage -Version 2.1.0.4
    That will resolve your problem absolutely .
    Aslo you can refer to other peoples solution.
    http://stackoverflow.com/questions/20457846/missing-microsoft-data-services-client-version-5-6-on-azure-websites
    My Blog
    Please use Make as Answer if my post solved your problem and use
    Vote As Helpful if a post was useful.

  • Getting issue while downloading 4 to 5 gb file from blob storage.

    Hi i have to download a file from blob storage upto 3 to 5 gb .
    Below is my code:
    Label lblfilename = (Label)row.FindControl("lblGrid_filename");
        Label lblfilesize = (Label)row.FindControl("lblGrid_hidfileSize");
        string downloadfile = lblfilename.Text.ToString();
       // DownloadFileFromBlob(downloadfile, CONTAINER, ACCOUNTKEY);
        AccountFileTransfer = CloudStorageAccount.Parse("DefaultEndpointsProtocol=https;AccountName=" + ACCOUNTNAME + ";AccountKey=" + ACCOUNTKEY);
        if (AccountFileTransfer != null)
            BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
            ContainerFileTransfer = BlobClientFileTransfer.GetContainerReference(CONTAINER);
            ContainerFileTransfer.CreateIfNotExist();
            BlobRequestOptions options = new BlobRequestOptions();
            options.Timeout = new TimeSpan(0, 180, 0);
        var data = Regex.Match(lblfilesize.Text.ToString(), @"\d+").Value;
        int value32;
        Int64 value64;
        var blobSize = 0L;
        var blockSize = 0L;
        var offset = 0L;
        if (int.TryParse(data, out value32))
            blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        else if (Int64.TryParse(data, out value64))
            blobSize = Convert.ToInt64(lblfilesize.Text.ToString());
        var blob = ContainerFileTransfer.GetBlockBlobReference(downloadfile);
        var sasUrl = blob.Uri.AbsoluteUri;
        CloudBlockBlob blockBlob = new CloudBlockBlob(sasUrl);
        //blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        blockSize = 5 * 1024 * 1024;
        Response.Clear();
        Response.ContentType = "APPLICATION/OCTET-STREAM";
        System.String disHeader = "Attachment; Filename=\"" + blockBlob.Name + "\"";
        //Response.AppendHeader("Content-Disposition", disHeader);
        for (offset = 0; offset < blobSize; offset += blockSize)
            using (var blobStream = blockBlob.OpenRead())
                if ((offset + blockSize) > blobSize)
                    blockSize = (blobSize - offset);
                byte[] buffer = new byte[blockSize];
                blobStream.Read(buffer, 0, buffer.Length);
                Response.BinaryWrite(buffer);
                Response.Flush();
        Response.End();
    SNAPSHOT of error:
    Pawan

    Hi Will thanks per the reply
    I have make some changes in the code and now i am using the v4.0.30319 azure storage for downloading and able to download a file upto 3.5 GB. Now the problem is that each file size is showing 0 KB.
    Here is my code and snapshot:
      Button btndownloadrow = (Button)sender;
        GridViewRow row = (GridViewRow)btndownloadrow.NamingContainer;
        Label lblfilename = (Label)row.FindControl("lblGrid_filename");
        Label lblfilesize = (Label)row.FindControl("lblGrid_hidfileSize");
        string downloadfile = lblfilename.Text.ToString();
        CloudStorageAccount AccountFileTransfer = CloudStorageAccount.Parse("DefaultEndpointsProtocol=http;AccountName=" + ACCOUNTNAME + ";AccountKey=" + ACCOUNTKEY);
        // Create the blob client.
        CloudBlobClient BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
        // Retrieve reference to a previously created container.
        CloudBlobContainer ContainerFileTransfer = BlobClientFileTransfer.GetContainerReference("filetransfer");
        if (AccountFileTransfer != null)
            BlobClientFileTransfer = AccountFileTransfer.CreateCloudBlobClient();
            CloudBlockBlob pageBlob = ContainerFileTransfer.GetBlockBlobReference(CONTAINER);
            ContainerFileTransfer.CreateIfNotExists();
            BlobRequestOptions options = new BlobRequestOptions();
            options.ServerTimeout= new TimeSpan(0, 180, 0);
        var data = Regex.Match(lblfilesize.Text.ToString(), @"\d+").Value;
        int value32;
        Int64 value64;
        var blobSize = 0L;
        var blockSize = 0L;
        var offset = 0L;
        if (int.TryParse(data, out value32))
            blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        else if (Int64.TryParse(data, out value64))
            blobSize = Convert.ToInt64(lblfilesize.Text.ToString());
        CloudBlockBlob blob = ContainerFileTransfer.GetBlockBlobReference(downloadfile);
        var sasUrl = blob.Uri;
        CloudBlockBlob blockBlob = new CloudBlockBlob(sasUrl);
        //blobSize = Convert.ToInt32(lblfilesize.Text.ToString());
        blockSize = 4 * 1024 * 1024;
        Response.Clear();
        Response.ContentType = "APPLICATION/OCTET-STREAM";
        System.String disHeader = "Attachment; Filename=\"" + blockBlob.Name + "\"";
        Response.AppendHeader("Content-Disposition", disHeader);
       // blob.DownloadToStream(Response.OutputStream);
       // byte[] bytes = new byte[blockSize];
        for (offset = 0; offset < blobSize; offset += blockSize)
            using (var blobStream = blockBlob.OpenRead())
                if ((offset + blockSize) > blobSize)
                    blockSize = (blobSize - offset);
            byte[] buffer = new byte[blockSize];
                blobStream.Read(buffer, 0, buffer.Length);
                Response.BinaryWrite(buffer);
                Response.Flush();
        Response.End();
    SNAPSOT:
    Please suggest me if i am missing any logic.
    Pawan

  • How integrate azure media services with blob storage?

    I need to upload lots of content over blob storage which contains different types of files.
    Now my problem is that files contains lots of videos also.
    I want to way by which i can integrate azure media services with blob storage so that i can stream that video.
    So probably i don't want to upload my videos on azure media services storage because i want all my content to be at one place which is blob storage.
    Is there any way to achieve this?
    Thanks,
    Rajesh Khunt
    Blog : http://programmersgeek.wordpress.com/
    Twitter : http://twitter.com/#!/r_rajeshkhunt
    Linkedin : http://in.linkedin.com/in/rajeshkhunt

    Hi Rajesh
    Every Media Services account needs a blob storage account associated with it. You can choose an existing blob storage account for that purpose. In order for Media Services to work with your videos you need to create an asset using the Media Services APIs.
    That call results in the creation of a container which has the name in the following format asset-<AssetId>. The actual video files need to go as blobs within this container but these files need to be known to Media Services and you can do so by adding
    AssetFiles to the asset using the Media Services APIs. Once you do that the asset is well known to Media Services and you can stream it.

  • WAImportExport Blob Storage Azure Virtual Machine

    Hi Guys
    I am looking to use the WAImport service to import 500GB of data to Blob Storage via my local DataCenter.
    Once uploaded to the container, how would I get this data to a file system in one of my Azure Server 2012 R2 VMs?
    An ideal solution would be to somehow get the data onto a VHD and then import the VHD into the VM, but how could this be done?
    Thanks

    Hi,
    You may use the AzCopy tool to copy data from the blob storage wherein your files have been uploaded to that VHD(second hard drive) which you have connected to VM.
    Else, if the imported contents is in VHD(blob) then you can attach the same disk as Data disk to your existing VM.
    Please refer following link for more info regarding Copy files to/from Azure Storage:
    http://blogs.msdn.com/b/mast/archive/2014/06/28/how-to-copy-files-to-from-azure-storage.aspx
    Regards,
    Manu Rekhar

  • Installing Remote Blob Storage (RBS) Provider on Active/Passive cluster

    We are implementing RBS for our SharePoint farm and have successfully got it installed and working for all Content Databases.
    I've read a dozen or so guides but none of them cover installing on a clustered SQL environment and I need to install the RBS provider on the passive node but cant see any guides that mention it although its stated Clustering is supported.
    Can anyone tell the correct way to install it on the passive node?

    Hi Dr_Sanchez,
    According to
    this blog, it is supported to install remote blob storage provider on SQL Server active passive cluster. You could follow the installation steps in that blog. If you get an error like this:
    Cannot use file 'c:\Blobstore' for clustered server. Only formatted files on which the cluster resource of the server has a dependency can be used. Either the disk resource containing the file is not present in the cluster group or the cluster resource of
    the Sql Server does not have a dependency on it.
    Then please replace 'c:\Blobstore' with the volume\directory which resides in the same group in the Cluster Administrator as the SQL Server resources.
    Regards,
    Michelle Li
    If you have any feedback on our support, please click
    here.

  • Remote Blob Storage Install - APPCOMPAT: no matching ProductCode found in database.

    I am trying to install Remote Blob Storage in Sharepoint Server 2013 with SQL Server 2008 R2 Express, but it is not creating the table in the database.
    Here is my script
    msiexec /qn /lvx* rbs_install_log.txt /i RBS.msi TRUSTSERVERCERTIFICATE=true FILEGROUP=PRIMARY DBNAME="WSS_Content_Blob_001" DBINSTANCE="SHAREPOINT" FILESTREAMFILEGROUP=RBSFilestreamProvider FILESTREAMSTORENAME=FilestreamProvider_1
    Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    APPCOMPAT: looking for appcompat database entry with ProductCode '{56D21E05-679B-40F2-94C1-DB0D7EB2E461}
    My SQL server version is 10.50.6000.34
    In the log file I found the following lines in the bottom of the file, but the table is not in the content database.
    Product: SQL Server 2008 R2 Remote Blob Store -- Configuration completed successfully.
    I am struggling with this issue for long.  It would be great if someone could help.
    === Verbose logging started: 3/4/2015 15:27:16 Build type: SHIP UNICODE 5.00.7601.00 Calling process: C:\Windows\system32\msiexec.exe ===
    MSI (c) (E4:A4) [15:27:16:166]: Resetting cached policy values
    MSI (c) (E4:A4) [15:27:16:166]: Machine policy value 'Debug' is 0
    MSI (c) (E4:A4) [15:27:16:166]: ******* RunEngine:
    ******* Product: RBS.msi
    ******* Action:
    ******* CommandLine: **********
    MSI (c) (E4:A4) [15:27:16:166]: Client-side and UI is none or basic: Running entire install on the server.
    MSI (c) (E4:A4) [15:27:16:166]: Grabbed execution mutex.
    MSI (c) (E4:A4) [15:27:16:182]: Cloaking enabled.
    MSI (c) (E4:A4) [15:27:16:182]: Attempting to enable all disabled privileges before calling Install on Server
    MSI (c) (E4:A4) [15:27:16:182]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (00:94) [15:27:16:182]: Running installation inside multi-package transaction D:\RBS.msi
    MSI (s) (00:94) [15:27:16:182]: Grabbed execution mutex.
    MSI (s) (00:54) [15:27:16:182]: Resetting cached policy values
    MSI (s) (00:54) [15:27:16:182]: Machine policy value 'Debug' is 0
    MSI (s) (00:54) [15:27:16:182]: ******* RunEngine:
    ******* Product: D:\RBS.msi
    ******* Action:
    ******* CommandLine: **********
    MSI (s) (00:54) [15:27:16:197]: Machine policy value 'DisableUserInstalls' is 0
    MSI (s) (00:54) [15:27:16:197]: Setting cached product context: User non-assigned for product: FB42F99F09B0E3646985F32DFE3C9C29
    MSI (s) (00:54) [15:27:16:197]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:197]: SRSetRestorePoint skipped for this transaction.
    MSI (s) (00:54) [15:27:16:197]: End dialog not enabled
    MSI (s) (00:54) [15:27:16:197]: Original package ==> D:\RBS.msi
    MSI (s) (00:54) [15:27:16:197]: Package we're running from ==> C:\Windows\Installer\6847f.msi
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: APPCOMPAT: Uninstall Flags override found.
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: APPCOMPAT: Uninstall VersionNT override found.
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: APPCOMPAT: Uninstall ServicePackLevel override found.
    MSI (s) (00:54) [15:27:16:213]: APPCOMPAT: looking for appcompat database entry with ProductCode '{56D21E05-679B-40F2-94C1-DB0D7EB2E461}'.
    MSI (s) (00:54) [15:27:16:213]: APPCOMPAT: no matching ProductCode found in database.
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: MSCOREE not loaded loading copy from system32
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'DisablePatch' is 0
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'AllowLockdownPatch' is 0
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'DisableLUAPatching' is 0
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'DisableFlyWeightPatching' is 0
    MSI (s) (00:54) [15:27:16:213]: Enabling baseline caching for this transaction since all active patches are MSI 3.0 style MSPs or at least one MSI 3.0 minor update patch is active
    MSI (s) (00:54) [15:27:16:213]: APPCOMPAT: looking for appcompat database entry with ProductCode '{56D21E05-679B-40F2-94C1-DB0D7EB2E461}'.
    MSI (s) (00:54) [15:27:16:213]: APPCOMPAT: no matching ProductCode found in database.
    MSI (s) (00:54) [15:27:16:213]: Transforms are not secure.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'D:\rbs_install_log.txt'.
    MSI (s) (00:54) [15:27:16:213]: Command Line: TRUSTSERVERCERTIFICATE=true FILEGROUP=PRIMARY DBNAME=WSS_Content_Blob_001 DBINSTANCE=SHAREPOINT FILESTREAMFILEGROUP=RBSFilestreamProvider FILESTREAMSTORENAME=FilestreamProvider_1 CURRENTDIRECTORY=D:\ CLIENTUILEVEL=3 CLIENTPROCESSID=10980
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{1AC68E73-94F1-4A01-B229-82B2F73C3326}'.
    MSI (s) (00:54) [15:27:16:213]: Product Code passed to Engine.Initialize: '{56D21E05-679B-40F2-94C1-DB0D7EB2E461}'
    MSI (s) (00:54) [15:27:16:213]: Product Code from property table before transforms: '{56D21E05-679B-40F2-94C1-DB0D7EB2E461}'
    MSI (s) (00:54) [15:27:16:213]: Product Code from property table after transforms: '{56D21E05-679B-40F2-94C1-DB0D7EB2E461}'
    MSI (s) (00:54) [15:27:16:213]: Product registered: entering maintenance mode
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Determined that existing product (either this product or the product being upgraded with a patch) is installed per-machine.
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Product {56D21E05-679B-40F2-94C1-DB0D7EB2E461} is admin assigned: LocalSystem owns the publish key.
    MSI (s) (00:54) [15:27:16:213]: Product {56D21E05-679B-40F2-94C1-DB0D7EB2E461} is managed.
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: MSI_LUA: Credential prompt not required, user is an admin
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding ProductState property. Its value is '5'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding ProductToBeRegistered property. Its value is '1'.
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer 3: 2
    MSI (s) (00:54) [15:27:16:213]: Entering CMsiConfigurationManager::SetLastUsedSource.
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Specifed source is already in a list.
    MSI (s) (00:54) [15:27:16:213]: User policy value 'SearchOrder' is 'nmu'
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'DisableBrowse' is 0
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'AllowLockdownBrowse' is 0
    MSI (s) (00:54) [15:27:16:213]: Adding new sources is allowed.
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Package name retrieved from configuration data: 'RBS.msi'
    MSI (s) (00:54) [15:27:16:213]: Note: 1: 2262 2: AdminProperties 3: -2147287038
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'DisableMsi' is 1
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'AlwaysInstallElevated' is 0
    MSI (s) (00:54) [15:27:16:213]: User policy value 'AlwaysInstallElevated' is 0
    MSI (s) (00:54) [15:27:16:213]: Using cached product context: machine assigned for product: 50E12D65B9762F04491CBDD0E72B4E16
    MSI (s) (00:54) [15:27:16:213]: Product {56D21E05-679B-40F2-94C1-DB0D7EB2E461} is admin assigned: LocalSystem owns the publish key.
    MSI (s) (00:54) [15:27:16:213]: Product {56D21E05-679B-40F2-94C1-DB0D7EB2E461} is managed.
    MSI (s) (00:54) [15:27:16:213]: Running product '{56D21E05-679B-40F2-94C1-DB0D7EB2E461}' with elevated privileges: Product is assigned.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding TRUSTSERVERCERTIFICATE property. Its value is 'true'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Modifying FILEGROUP property. Its current value is 'default'. Its new value: 'PRIMARY'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding DBNAME property. Its value is 'WSS_Content_Blob_001'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding DBINSTANCE property. Its value is 'SHAREPOINT'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Modifying FILESTREAMFILEGROUP property. Its current value is 'default'. Its new value: 'RBSFilestreamProvider'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding FILESTREAMSTORENAME property. Its value is 'FilestreamProvider_1'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding CURRENTDIRECTORY property. Its value is 'D:\'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding CLIENTUILEVEL property. Its value is '3'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '10980'.
    MSI (s) (00:54) [15:27:16:213]: Machine policy value 'DisableAutomaticApplicationShutdown' is 0
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding MsiRestartManagerSessionKey property. Its value is 'f13e91ecbfc5d34cae7163e948e320cc'.
    MSI (s) (00:54) [15:27:16:213]: RESTART MANAGER: Session opened.
    MSI (s) (00:54) [15:27:16:213]: TRANSFORMS property is now:
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding PRODUCTLANGUAGE property. Its value is '1033'.
    MSI (s) (00:54) [15:27:16:213]: PROPERTY CHANGE: Adding VersionDatabase property. Its value is '300'.
    MSI (s) (00:54) [15:27:16:213]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming
    MSI (s) (00:54) [15:27:16:213]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\Favorites
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\Network Shortcuts
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\Documents
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\Recent
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\SendTo
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\Templates
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\ProgramData
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Local
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\Pictures
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu
    MSI (s) (00:54) [15:27:16:229]: SHELL32::SHGetFolderPath returned: C:\Users\Public\Desktop
    MSI (s) (00:54) [15:27:16:244]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
    MSI (s) (00:54) [15:27:16:244]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
    MSI (s) (00:54) [15:27:16:244]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
    MSI (s) (00:54) [15:27:16:244]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\AppData\Roaming\Microsoft\Windows\Start Menu
    MSI (s) (00:54) [15:27:16:244]: SHELL32::SHGetFolderPath returned: C:\Users\medsvradmin\Desktop
    MSI (s) (00:54) [15:27:16:244]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Templates
    MSI (s) (00:54) [15:27:16:244]: SHELL32::SHGetFolderPath returned: C:\Windows\Fonts
    Property(S): PhysicalMemory = 8192
    Property(S): VirtualMemory = 7158
    Property(S): AdminUser = 1
    Property(S): MsiTrueAdminUser = 1
    Property(S): LogonUser = medsvradmin
    Property(S): UserSID = S-1-5-21-300911508-3398273753-3262312657-1000
    Property(S): UserLanguageID = 1033
    Property(S): ComputerName = JPNTKYINT01
    Property(S): SystemLanguageID = 1033
    Property(S): ScreenX = 1024
    Property(S): ScreenY = 768
    Property(S): CaptionHeight = 19
    Property(S): BorderTop = 1
    Property(S): BorderSide = 1
    Property(S): TextHeight = 16
    Property(S): TextInternalLeading = 3
    Property(S): ColorBits = 32
    Property(S): TTCSupport = 1
    Property(S): Time = 15:27:21
    Property(S): Date = 3/4/2015
    Property(S): MsiNetAssemblySupport = 4.0.30319.34209
    Property(S): MsiWin32AssemblySupport = 6.1.7601.17514
    Property(S): RedirectedDllSupport = 2
    Property(S): MsiRunningElevated = 1
    Property(S): DATABASE = C:\Windows\Installer\6847f.msi
    Property(S): OriginalDatabase = D:\RBS.msi
    Property(S): UILevel = 2
    Property(S): ACTION = INSTALL
    Property(S): ROOTDRIVE = D:\
    Property(S): CostingComplete = 1
    Property(S): OutOfDiskSpace = 0
    Property(S): OutOfNoRbDiskSpace = 0
    Property(S): PrimaryVolumeSpaceAvailable = 0
    Property(S): PrimaryVolumeSpaceRequired = 0
    Property(S): PrimaryVolumeSpaceRemaining = 0
    Property(S): DOTNETCOREPATH = 1
    Property(S): SourcedirProduct = {56D21E05-679B-40F2-94C1-DB0D7EB2E461}
    Property(S): SOURCEDIR = D:\
    MSI (s) (00:54) [15:27:21:049]: Note: 1: 1728
    MSI (s) (00:54) [15:27:21:049]: Product: SQL Server 2008 R2 Remote Blob Store -- Configuration completed successfully.
    MSI (s) (00:54) [15:27:21:049]: Windows Installer reconfigured the product. Product Name: SQL Server 2008 R2 Remote Blob Store. Product Version: 10.50.1600.1. Product Language: 1033. Manufacturer: Microsoft Corporation. Reconfiguration success or error status: 0.
    MSI (s) (00:54) [15:27:21:049]: Deferring clean up of packages/files, if any exist
    MSI (s) (00:54) [15:27:21:049]: MainEngineThread is returning 0
    MSI (s) (00:94) [15:27:21:049]: RESTART MANAGER: Session closed.
    MSI (s) (00:94) [15:27:21:049]: No System Restore sequence number for this installation.
    === Logging stopped: 3/4/2015 15:27:21 ===
    MSI (s) (00:94) [15:27:21:049]: User policy value 'DisableRollback' is 0
    MSI (s) (00:94) [15:27:21:049]: Machine policy value 'DisableRollback' is 0
    MSI (s) (00:94) [15:27:21:049]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (00:94) [15:27:21:049]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
    MSI (s) (00:94) [15:27:21:049]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
    MSI (s) (00:94) [15:27:21:049]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
    MSI (s) (00:94) [15:27:21:049]: Restoring environment variables
    MSI (s) (00:94) [15:27:21:049]: Destroying RemoteAPI object.
    MSI (s) (00:A8) [15:27:21:049]: Custom Action Manager thread ending.
    MSI (c) (E4:A4) [15:27:21:049]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
    MSI (c) (E4:A4) [15:27:21:049]: MainEngineThread is returning 0
    === Verbose logging stopped: 3/4/2015 15:27:21 ===

    Hi stecorp75,
    To troubleshoot above error, please make sure the following things.
    1. Use the RBS.msi file on this link http://www.microsoft.com/download/en/details.aspx?id=16978.
    Do not download the rbs_x64 link given in TechNet article
    https://technet.microsoft.com/en-us/library/ee748631.aspx .
    2. Ensure that you run command prompt as administrator and then run your commands for RBS installation.
    3. Follow the steps in this similar
    blog to install RBS on SharePoint 2013.
    However, if you still fail to install Remote Blob Storage, I would like to recommend you post the question in the SharePoint 2013 forum at
    https://social.technet.microsoft.com/Forums/en-US/home?forum=sharepointadmin . It is appropriate and more experts will assist you.
    There is a similar thread for your reference.
    https://social.technet.microsoft.com/Forums/en-US/23a410bd-9afe-438d-abcb-44363847802a/product-sql-remote-blob-storage-installation-failed
    Thanks,
    Lydia Zhang
    Lydia Zhang
    TechNet Community Support

  • How to use Blob storage to office 365 sharepoint online library documents

    Hello,
    Considering that we cant uploade a file with size more than 250 MB and it is recommended using Remote
    Blob Storage (RBS) if large files are supposed to store in SharePoint.
    My question is, how to use RBS or Azure Blob storage to store files instead of SQL database.
    What is the configuration or code i need to write to accomplished this where i would prefer if it can be done simply using some configuration.
    any sample or tutorial would be great help.
    Thanks,
    Asjad 

    HI,
    What we did, we deploy small Azure PaaS application what used Azure Blob Storage and table and then show it in Office365 SharePoint online trough iframe. This gives you flexibility to customimze the PaaS application and show the content at blog storage.
    We tested this in SharePoint ONline multitenant and Dedicated plus in On Premise SharePoint with the custom code in separate IIS server published trough UAG to Internet. This allows you to save or replace your file server with Azure and small PaaS apps in
    and show the content on SharePoint ONline trough Iframe.
    Br Petri

  • Access blob storage files by specific domain. (Prevent hotlinking in Azure Blob Storage)

    Hi,
    My application deployed on azure, and I managed all my file to blob storage.
    When i created container with public permission then it accessible for all anonymous users. When i hit URL of file (blob) from different browser, then i will get that file.
    In Our application we have some important file and images that we don't want to expose. When we render HTML page then in <img> tag we define src="{blob file url}" when i mention this then public file are accessible, but same URL i copied
    and hit to anther browser then still it is visible. My requirement is my application domain only able to access that public file in blob storage.
    Amazon S3 which provide bucket policy where we define that for specific domain only file will accessible. see http://docs.aws.amazon.com/AmazonS3/latest/dev/example-bucket-policies.html
    Restricting Access to a Specific HTTP Referrer

    hi Prasad,
    Thanks for your post back.
    All of SAS and CORS could work, but not comprehensive.
    For your requirement, " My requirement is my application domain only able to access that public file in blob storage.", If you want to stop the other domain site access your blob, you may need set the CORS for your blob. When
    the origin domain of the request is checked against the domains listed for the
    AllowedOrigins element. If the origin domain is included in the list, or all domains are allowed with the wildcard character '*', then rules evaluation proceeds. If the origin domain is not included, then the request fails. So other domain didn't access
    your resource. You also try the Gaurav's blog:
    http://gauravmantri.com/2013/12/01/windows-azure-storage-and-cors-lets-have-some-fun/
    If you access CROS resource, you also need use SAS authenticated.
    However SAS means that you can grant a client limited permissions to your blobs, queues, or tables for a specified period of time and with a specified set of permissions, without having to share your account access keys. The SAS is a URI that encompasses
    in its query parameters all of the information necessary for authenticated access to a storage resource (http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/
    ).  So if your SAS URI is available and not expired ,this URI could be used to other domain site. I think you can try to test it.
    If I misunderstood, please let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error when connecting to windows azure blob storage

    While trying to upload an image to blob storage i keep getting can connect to ****.blob.core.windows.net
    try {
    //Get the rocket data
    FileInputStream fis = new FileInputStream(mFilePath);
    int bytesRead = 0;
    ByteArrayOutputStream bos = new ByteArrayOutputStream();
    byte[] b = new byte[1024];
    while ((bytesRead = fis.read(b)) != -1) {
    bos.write(b, 0, bytesRead);
    byte[] bytes = bos.toByteArray();
    fis.close();
    // Post our rocket data (byte array) to the server
    URL url = new URL(mBlobUrl.replace("\"", ""));
    HttpURLConnection urlConnection = (HttpURLConnection) url.openConnection();
    urlConnection.setDoOutput(true);
    urlConnection.setRequestMethod("PUT");
    urlConnection.addRequestProperty("Content-Type", "image/jpeg");
    // Write image data to server
    DataOutputStream wr = new DataOutputStream(urlConnection.getOutputStream());
    wr.write(bytes);
    wr.flush();``
    wr.close();
    int response = urlConnection.getResponseCode();
    //If we successfully uploaded, return true
    if (response == 201
    && urlConnection.getResponseMessage().equals("Created")) {
    return true;
    } catch (Exception ex) {
    Log.e(TAG, ex.getMessage());

    Hi,
    What detailed error have you encountered? Please try to add content-length as below, hope it helps, if not, please give more information here.
    urlConnection.setDoOutput(true);
    urlConnection.setRequestMethod("PUT");
    urlConnection.addRequestProperty("Content-Type", "image/jpeg");
    urlConnection.setRequestProperty("Content-Length", ""+ bytes.length);
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Renaming files in blobs storage

    Hi,
    I want to rename files in blobs storage which are inside the container. I can't find any demo code. Please help
    Regards,
    Nitin

    Please note that rename operation is not natively supported in blob storage. So in order to rename blobs, you would need to perform 2 operations - Copy & Delete.
    So what you will do is copy the blob to a new name. Because copy operation is async, you must wait for the copy operation to finish. Once copy operation is completed successfully, you would then delete the blob.
    Hope this helps.

  • RBS (BLOB Storage)

    I'm using SharePoint 2013 and we're looking to implement RBS (BLOB) storage. This is something new to me so I've been reading about it and I've seen articles that use tools for this such thing such as tools from DocAve and other tools as well as Database
    configurations, etc. To get RBS to work from a SharePoint 2013 farm/environment, is there anything from the SharePoint side that has to be done, or is it truly at the database level? I create a document center site collection that the users will upload and
    view the docs in, however, is there anything that has to be done at the SharePoint level for this to work?

    Hi ,
    According to your description, my understanding is that you want to implement RBS (BLOB) storage for SharePoint 2013.
    The script writed by Steven is running on SharePoint side server, though it makes some changes on content database level. After running the script, you can start to test RBS for SharePoint 2013. When you upload documents in the document library, At SharePoint
    level you will not see any difference, but you can check the Blogstorage folder.
    More information, you can refer to the link below:
    http://stevemannspath.blogspot.in/2012/07/bang-two-pound-four-remote-blob-storage.html
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Force file download for IE9 on Azure Blob Storage

    Hello,
    I am trying to use Azure Blob Storage as a location for secure file downloads using Shared Access Signature. Everything is working very well, however the problem I am having is I am trying to allow the user to save files from the browser and I have all browsers
    except IE9 working.
    Reviewing this question,
    What content type to force download of text response?
    this works well when I can control all of the headers, however in Azure Blob Storage, I have set the Content-Type to application/octet-stream and this allows all browsers except IE to ask the user to save the file, IE simply opens the file. It appears that
    known file types will open (example .jpg, .wmv etc…).
    In Azure, I have found no way to set
    Content-Disposition: attachment;filename="My Text File.txt"
    Is there a way, using Azure Blob Storage, to use IE to download any file directly from Azure Blob Storage?
    Thanks in advance.

    Hi,
    Actually, we can't set Content-Disposition for blobs, and I can't think of any other workarounds. From my experience, in most case IE's behavior is fine. I would like to know why you have to prompt a download? The user can see the text file, and
    if they wish to save it locally, they have more than one way to do that (copy paste, save file, etc.). If they simply want to read the text and then forget it, that's also fine. They don't even have to download it and then double click a local file to read
    the content.
    If you have to modify the behavior, the only workaround I can think of is to use a web role as an intermediate bridge, and add the Content-Disposition from your web role.
    Best Regards,
    Ming Xu.
    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact
    [email protected]
    Microsoft One Code Framework

  • How to set CORS properties for BLOB Storage using node?

    Hi - I just got started with Azure using a Node-based web site and mobile services.
    I am following various documentation in order to provide an API for users to upload images via a time-restricted SAS for the BLOB Storage.
    In order to upload my image, I need to set the CORS configuration for the BLOB Storage. Unfortunately this cannot be done via the management portal.
    I'm unclear as to how to accomplish this. I'm considering using the startup.js file in my mobile service to make a post request to the BLOB Storage REST API:
    http://msdn.microsoft.com/en-us/library/windowsazure/hh452235.aspx
    Are there appropriate methods in the Node SDK to make this easier, especially the signing part?
    What is the recommended way for setting CORS properties for the BLOB Storage via Node?
    Thanks for your help
    Stefan

    Unfortunately Node SDK does not support CORS functionality yet. Your option would be to write code which consumes the REST API for setting CORS. Not sure if it helps but there's a free tool out there written by my company which you can use to set CORS
    on your storage account. More information about this tool can be found here:
    http://blog.cynapta.com/2013/12/cynapta-azure-cors-helper-free-tool-to-manage-cors-rules-for-windows-azure-blob-storage/
    Hope this helps.

Maybe you are looking for