Azure Blob Storage API

Hi,
I'm starting to use Azure Java APIs; blob storage to be precise. I would like to know more about the Storage SDK. Have a specific question about Azure Storage SDK:
Does it use REST APIs internally to store and retrieve files? How about the performance?
Note: I'll be running all my code on a Azure Virtual Machine.
Thanks in advance.

You might want to post this in storage forum. Just my thoughts (not authoritative)
I am not sure about the performance. I will expect Java SDK to use the REST service and performance targets are specified here.
https://msdn.microsoft.com/en-us/library/azure/dn249410.aspx. Assuming you are trying to do read from with in the same region, performance should be good.
Another tip to improve the performance is to create an affinity group and have virtual machines and storage accounts created with in same affinity group (which should give better performance, as affinity group is a small/nearby set with in a single region).
More than API performance, I will suggest to choose the right design for your blob types, based on your requirements.
https://msdn.microsoft.com/en-us/library/azure/ee691964.aspx

Similar Messages

  • How to Secure or mask the Video Streaming on Azure Blob Storage

    I have a problem on using my Azure Blob Storage, this is for streaming specifically MP4 files.
    I have a wordpress site and I use Azure Blob Storage for my Storage, I use CloudberryExplorer for my browsing and editting
    My problem is that, the wordpress site Video Option which is MediaElemtJs have an exposed Video Source (This mean they can use the video source for their own project)
    Is their a way to mask or hide the video source? or I can limit the video source that it should only be coming from my site

    hi Franz,
    Base on my experience, there has two approaches for this issue.
    1.Using the SAS in js request.
    Like this:
    <source src="https://MY-AZURE-STORAGE.blob.core.windows.net/asset-b1ebfc63-4e1f-4c76-b2dd-b040113aa493/MigratingWebSitesAndDatabasesToWindowsAzure_mid.mp4?sv=2012-02-12&st=2013-09-03T17%3A17%3A20Z&se=2015-09-03T17%3A17%3A20Z&sr=c&si=efc57c3c-a025-41cd-a8b1-908231c7aed2&sig=xyiIxmqNdF%2Bo1x7eq89xCUgXkenZLEEpq%2B%2Bo715dT0U%3D" type="video/mp4">
    Please see this blog:http://azure.microsoft.com/en-us/documentation/articles/storage-dotnet-shared-access-signature-part-1/
    You could set the start time,expire time  and permission into your request. And you could use javascript to create the request and set src value. please see this sample (http://gauravmantri.com/2013/02/16/uploading-large-files-in-windows-azure-blob-storage-using-shared-access-signature-html-and-javascript/
    2.Create a web handler to handle the request url
    You could create a .ashx page and handle the url in .ashx page. Like this:
    <video src="videos.ashx?source=file.mp4" width="640" height="480" controls></video>
    Please try it.
    Also, you could see this threads
    http://stackoverflow.com/questions/9756837/prevent-html5-video-from-being-downloaded-right-click-saved form some ideas.
    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.

  • Connect SAP BO Data Services to Azure Blob Storage

    Hi,
    I want to connect SAP BO Data service to Azure Blob Storage. Is there a way to achieve this?
    Thanks,

    Hi Anton,
    As of now, it is not possible for SAP BO Data Services to connect with Azure Blob Storage. However, you may put down your requirement in Azure Feedback, so that concerned development team can get it done in near future.
    http://feedback.azure.com/forums/34192--general-feedback
    Regards,
    Manu Rekhar

  • 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

  • Streaming files from Azure Blob Storage through Node.js server

    Hello,
    I am currently trying to implement download server with Node.js Express app in a way that website visitors would be able to download files via stream straight from Azure Blob storage - so the server won't need to download files to its local storage. Here's
    how I do that:
    outStream is the response object (res) received by Express router; blobSvc is initialized like this:
    blobSvc = azure.createBlobService(conf.azureStorageConfig.account, conf.azureStorageConfig.key, conf.azureStorageConfig.host);
    . There are several issues I face, for example - while small files get downloaded well, the bigger ones (even 40 MB) do not finish the download successfully, throwing an error in console:
    It has to be mentioned that the files are zip-archives, and while the error is thrown, the file is not completely downloaded to the client's machine - the archive is broken. 
    There are other issues, like the fact that the client can't download more than 1 file from the server simultaneously - he gets response timeout after trying to start downloading the second file.
    What is the right way to use streaming with azure storage library in Node for client downloads?
    Best Regards,
    Petr.
    Arction Ltd.

    Hi,
    Thank you for posting in here.
    We are checking on this and will get back at earliest.
    Regards,
    Manu Rekhar

  • 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.

  • 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.

  • 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.

  • How to put Azure blob Storage service off-line

    I am doing a migration and like to make sure Azure Storage service is off-line to make sure no content is pointing to this account before deleting exiting Storage account. 
    Please help.

    Hi,
    As far as I know, this is not support now.
    If you met the issue such as "Storage account **************** has 1 container(s) which have an active image and/or disk artifacts." when delete azure storage, please go to Virtual Machines -> “Disks” or “Images” tab -> select the images/disks
    that you have located in the Storage Account you want to delete -> then hit the “Delete disk” or “delete image” command. Back these up if you need before hitting the delete.
    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.

  • How to import DB from Azure BLOB storage

    There was option "Import" in Azure portal when open SQL Server. Now only "Add" available which is not what is needed.
    "Export" works fine when open database.
    Please help. Why this option disappeared?

    Hi,
    >>There was option "Import" in Azure portal when open SQL Server.
    From my research, yes there is an "Import" button in the old version, but it disappeared now, from my experience, this is by design, we can submit this as a custom voice in
    http://feedback.windowsazure.com/forums/34192-general-feedback-
    Best Regards
    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.

  • Azure table storage rest API including

    How do I access my table storage using REST API. 
    Any example would be appreciated including enabling REST API.

    Hi,
    Please have a look at this article:
    http://blogs.msdn.com/b/tconte/archive/2011/08/10/accessing-windows-azure-blob-storage-using-jquery.aspx, hope it helps. We could also consider use
    Jquery to call codebehind to do some operation about Azure table storeage, if so we could choose azure SDK or azure storage rest API to do this.
    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.

  • Where is Blob Storage REST API?

    Where has Azure Blob Storage REST API reference gone?
    All links to it became being redirected to http://azure.microsoft.com/en-us/documentation/
    Is public REST API support discontinued and it becomes proprietary?

    Hi,
    I clicked on few of the links of main page link -
    http://msdn.microsoft.com/en-us/library/azure/dd135733.aspx and I was able to open the operation details - For example,
    List Containers-
    http://msdn.microsoft.com/en-us/library/azure/dd179352.aspx
    Put Blob -
    http://msdn.microsoft.com/en-us/library/azure/dd179451.aspx
    Delete Blob -
    http://msdn.microsoft.com/en-us/library/azure/dd179413.aspx
    Hope this helps.
    http://sanganakauthority.blogspot.com/

  • 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.

  • How can I make Azure blob give me "206 Partial content" for mp4. Getting 200

    I want a video for my web-site, so I am using html+JavaScript found on view-source:https://www.airbnb.com/ 
    see id="pretzel-video"
    and script starting from   var video = $("#pretzel-video");
    The point is - if I copy html+JavaScript on my web-site, I can get "206 Partial content" from  airbnb.com, i.e. the video hosted on airbnb.com starts streaming immediately. 
    The same thing happens if I upload the same video to my domain hosted on arvixe.com and S3 Amazon
    The only provider that doesn't give me 206, but responds with 200 instead is Azure blob
    This is unacceptable, because the user has to wait until all the video is loaded.
    So how can I make Azure blob give me  "206 Partial content". I am hosting web-site on Azure also. 
    I am using airbnb.com video in all three cases to exclude possible errors related to codek etc.

    Hi Chao 
    Azure Blob storage  supports return 206 response if you're using API version 2011-01-18 or later . 
    However if
    don't originate the request which means you can't specify this using the request header , you can set the API version globally
    for blob service within  a storage account by using " Set
    Blob Service Properties" API , 
    If the above still couldn't solve your issue, we suggest you please contact Microsoft Azure technical support for further assistance.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Regards,
    Serena Yu
    Microsoft Online 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

Maybe you are looking for

  • Anyone have example stylesheet for Flatten to XML output

    I would like to log the output of a "flatten to xml" vi and display it in a tabular format in my Teststand xml report.  I'm wondering if anyone has a starting point for the stylesheet side of things.

  • Ordering of columns in crosstab

    MONTHNAME,REV_AMOUNT,MONTH_NM 1_JAN,111,JAN 1_JAN,222,JAN 2_FEB,333,FEB 2_FEB,444,FEB 3_MAR,555,MAR 3_MAR,666,MAR 4_APR,777,APR 4_APR,888,APR           Rev Amount SUM                     Month     APR     FEB     JAN     MAR Monthname                

  • SCSM + Orchestrator Licensing

    Hello All, I'm trying to figure out how the System Center licensing works when implementing only SCSM + Orchestrator for the Self service part. We want to implement SCSM and Orchestrator only to offer runbooks to endusers via the portal. We will only

  • Accounting entry GL accoutns for excise invoice

    Hi, When we capture and post the excise invoice in J1IEX or MIGO  the account which are updated are the excise account as per setting in excise account table in SPRO  CIN for transaction GRPO  and the cenvat account is as per compnay code setting in

  • Filtering data in SQL

    What is the most efficient way of filtering data in SQL. This is what I'm trying to do: SELECT a.something, a.somethingelse FROM       atable a WHERE a.id = 6000 AND a.name != 'this' OR a.name != 'that' ORDER BY a.something; Considering I will be exe