Giter Site home page Giter Site logo

Unable to upload to blob error: java.lang.IllegalArgumentException: Address is a relative address. Only absolute addresses are permitted. >>at com.microsoft.azure.storage.StorageUri.AssertAbsoluteUri(StorageUri.java:34) >>at com.microsoft.azure.storage.StorageUri.setPrimaryUri(StorageUri.java:183) >>at com.microsoft.azure.storage.StorageUri.<init>(StorageUri.java:105) at com.microsoft.azure.storage.StorageUri.<init>(StorageUri.java:49) >>at com.microsoft.azure.storage.blob.CloudBlockBlob.<init>(CloudBlockBlob.java:96) about azure-storage-android HOT 6 CLOSED

azure avatar azure commented on September 25, 2024
Unable to upload to blob error: java.lang.IllegalArgumentException: Address is a relative address. Only absolute addresses are permitted. >>at com.microsoft.azure.storage.StorageUri.AssertAbsoluteUri(StorageUri.java:34) >>at com.microsoft.azure.storage.StorageUri.setPrimaryUri(StorageUri.java:183) >>at com.microsoft.azure.storage.StorageUri.(StorageUri.java:105) at com.microsoft.azure.storage.StorageUri.(StorageUri.java:49) >>at com.microsoft.azure.storage.blob.CloudBlockBlob.(CloudBlockBlob.java:96)

from azure-storage-android.

Comments (6)

emgerner-msft avatar emgerner-msft commented on September 25, 2024

As the exception message says, 'Address is a relative address. Only absolute addresses are permitted. '. So, when you're creating the block blob, you're creating with a relative address rather than an absolute address. Ie, result.getImageUri() is returning a partial rather than full address. If you step-through debug you'll be able to see this. Make sure the URI you pass has a form something like https://myaccount.blob.core.windows.net/mycontainer/myblob

from azure-storage-android.

lanrehnics avatar lanrehnics commented on September 25, 2024

The link you drop is dead..

from azure-storage-android.

emgerner-msft avatar emgerner-msft commented on September 25, 2024

Yes, this is an example of a url format, not meant to be clicked. Please compare the URL you are passing to the method with that form, substituting of course 'myaccount' for your account name, 'mycontainer' for your container name, and 'myblob' for your blob name.

from azure-storage-android.

lanrehnics avatar lanrehnics commented on September 25, 2024

Am uploading via mobile service.. Please Every is generated i cloud.. The Relative address is it the address of the file I want to upload .. Or the imageUri .... Or Please can yu write a tutorial that make one select a local file and upload to azure instead of taking a picture.. Please walk me through cos I pritty much need it very sooon..

from azure-storage-android.

emgerner-msft avatar emgerner-msft commented on September 25, 2024

result.getImageUri() >> I don't know what this outputs so I can't do anything to help you. This needs to be an absolute address, like the example I gave. This should be the URI of the blob you want to upload to.

from azure-storage-android.

emgerner-msft avatar emgerner-msft commented on September 25, 2024

@lanrehnics Haven't heard anything since Oct so closing this issue. Feel free to reopen with any follow up or open a new issue if you have additional questions.

from azure-storage-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.