Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8919941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:08:53+00:00 2026-06-15T06:08:53+00:00

I’m pretty new in Azure and I want to create a simple .Net application

  • 0

I’m pretty new in Azure and I want to create a simple .Net application (in C#) with one web role and one worker role to upload and resize images. I’ve already made a galery in the web role. It creates a blob then uploads the pictures there, then shows them.

What I want to do now:
Sending a message throw a queue to a worker role if any of the pictures are too big then resize them in the worker role. My promblem is that I can’t see how to access the same blob which was created in the web role (first I want to access to it in the local development emulator). If I add a new entry in the worker roles properties –> settings page that will give me a completely different blob connection string, doesn’t it?

Thanks for any help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:08:54+00:00Added an answer on June 15, 2026 at 6:08 am

    In order to access the same storage account from multiple roles you will need to add the connection string to all roles in the cloud project:

    enter image description here

    To initialize the client you would write something like this (again, this will be the same on all your roles):

    CloudStorageAccount storageAccount = CloudStorageAccount.Parse(
        CloudConfigurationManager.GetSetting("MyStorageAccount"));
    

    Whenever your Web Role sends a message to the queue to notify a Worker Role that the image should be resized, simply include the url or the container name + blob path. With this information your Worker Role will be able to fetch the blob and do the required processing.

    I suggest you take a look at the official Windows Azure Training Kit. One of the hands on labs does exactly what you’re trying to do here with a Guestbook application (uploading an image on a Web Role, creating a thumbnail in a Worker Role, …): HOL-IntroToCloudServices Ex2-UsingWorkerRolesAndQueues

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want use html5's new tag to play a wav file (currently only supported
Seemingly simple, but I cannot find anything relevant on the web. What is the
I'm making a simple page using Google Maps API 3. My first. One marker
I'm interested in microtypography issues on the web. I want a tool to fix:
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I am reading a book about Javascript and jQuery and using one of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.