Forwarding the request to a blob

Hi..so I have a html in the database stored as a blob. I retrieve that from the database inorder to forward the request to that html. But how can I acutally forward the request to a blob? There is no physical file present. And I am not even allowed to write that blob into a file and forward the request. Is there any other way to solve this problem? Also if I have a css file in a blob, how can I actually embed that css data onto my html blob data?
TIA

You forward the request to a servlet that reads the blob and copies it, byte for byte, to its response's output stream.
And if you want to serve your CSS from a blob, do the same thing. Don't try something ridiculously drastic like trying to apply the CSS to the HTML on the server side.

Similar Messages

  • How to forward the request

    hi all,
    can somebody tell me how to forward the request from one context to another.
    thanks in adv.
    ritu

    Ritu, when you are talking about a different context are you talking about application, session and page contexts?? If yes, then I don't think you can forward a request to another context!
    If you are after a context (bean) from within your servlet, have you tried:
    mycontext = (MyContextClass)getServletContext().getAttribute("thenameofmycontext");HTH.

  • Forward the request to a window with specific parameters

    page0.asp->page1.jsp
    When the user click submit button in page0.asp, it will post the form
    request to page1.jsp.
    page0.asp and page1.jsp are in separate machines. In page1.jsp, based
    on the parameter
    interfaceName, it will forward to different jsp pages. However, we want
    to forward the request
    to a window with parameter like the following, without the menu bar and
    toolbar.
    The question is how to forward the request to a window like that?
    window.open("test2.jsp",null,
    "height=500,width=500,status=yes,toolbar=no,menubar=no,location=no");
    //page1.jsp
    <%
    String interfaceName = request.getParameter("interfaceName");
    if (interfaceName != null)
    {        if (interfaceName.equalsIgnoreCase("id1"))
    url="/id1.jsp";
    else if (interfaceName.equalsIgnoreCase("id2"))
    url="/id2.jsp";
    else if (interfaceName.equalsIgnoreCase("id3"))
    url="/id3.jsp";
    //etc...
    request.getRequestDispatcher(url).forward(request,response);
    %>
    Please help and advise. thanks!!

    The server cannot decide where to send its response to. It can only send
    it to where the request came from.More specifically... to the server, the browser itself makes the request. Where the browser wants to put the response is entirely up to the browser.
    Unfortunately, you can't really use ECMAScript (JavaScript) after the response is returned to redirect it. I suppose you could copy the DOM contents of the response page into another frame's document or something, but that's just ugly.
    and don't cross-post...

  • ServletException while forwarding the request

    I am using wl 6.1 sp2 on win 2000 sp2. Some times when I use
              RequestDispatcher obtained within the servlet by
              RequestDispatcher rd = getServletContext().getRequestDispatcher(jspPage);
              where rd is not null, to forward request and response to, a ServletException
              is thrown in
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
              l.java:256);
              Any help will be very appreciated.
              Thanks,
              FFA.
              

    Check the JSP page you are forwarding to make sure it is working OK.
              "Faig" <[email protected]> wrote in message
              news:3c5af8a1$[email protected]..
              > I am using wl 6.1 sp2 on win 2000 sp2. Some times when I use
              > RequestDispatcher obtained within the servlet by
              > RequestDispatcher rd = getServletContext().getRequestDispatcher(jspPage);
              > where rd is not null, to forward request and response to, a
              ServletException
              > is thrown in
              >
              weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
              > l.java:256);
              >
              > Any help will be very appreciated.
              >
              > Thanks,
              >
              > FFA.
              >
              >
              

  • How can i forward a request one jsp to another jsp?

    as per my knowledge
    using jsp action tags that forward and include
    and first loaded the ServletContext objects and retriving that context objects...
    so i want one more any otherway can u help me?

    sreeman wrote:
    as per my knowledge
    using jsp action tags that forward and includeThe <jsp:forward> indeed forwards the request. The <jsp:include> doesn't.
    and first loaded the ServletContext objects and retriving that context objects...I don't get you?
    so i want one more any otherway can u help me?Why do you want that?
    There is a dedicated subforum for JSP and Servlets. For future JSP or Servlet related questions please make use of it.
    JSP and JSTL: http://forum.java.sun.com/forum.jspa?forumID=45
    Servlets: http://forum.java.sun.com/forum.jspa?forumID=33

  • OHS forwarding page request to WebLogic

    I have WebLogic v10.3.3.0 installed and up and running with Clustering. It has two managed servers, and each managed server is set up with SSL. I have an application deployed to the two managed servers and can bring up the application if typing in the URL to the application server directly via URLs like:
    https://nn.nn.nnn.nnn:7003/englink/login.seam (non-ssl on MS1)
    https://nn.nn.nnn.nnn:7004/englink/login.seam (ssl on MS1)
    https://nn.nn.nnn.nnn:7005/englink/login.seam (non-ssl on MS2)
    https://nn.nn.nnn.nnn:7006/englink/login.seam (ssl on MS2)
    I also have OHS installed and up and running. I am trying to get it to redirect to the WebLogic server. Right now I get this error in the mod_wl_ohs.log on the Oracle HTTP server log:
    Sun May 13 23:49:09 2012 <2667113369550681> INFO: Closing SSL context
    Sun May 13 23:49:09 2012 <2671213369673416> Sleeping for 2 seconds
    Sun May 13 23:49:11 2012 <2671213369673416> attempt #5 out of a max of 5
    Sun May 13 23:49:11 2012 <2671213369673416> Trying a pooled connection for 'nn.nn.nnn.nnn/7002/7002'
    Sun May 13 23:49:11 2012 <2671213369673416> getPooledConn: found a host and port/securePort match
    Sun May 13 23:49:11 2012 <2671213369673416> getPooledConn: No more connections in the pool for Host[nn.nn.nnn.nnn] Port[7002] SecurePort[7002]
    Sun May 13 23:49:11 2012 <2671213369673416> general list: trying connect to 'nn.nn.nnn.nnn'/7002/7002 at line 3188 for '/console'
    Sun May 13 23:49:11 2012 <2671213369673416> Connect failed: 111
    Sun May 13 23:49:11 2012 <2671213369673416> *******Exception type [NO_RESOURCES] (apr_socket_connect call failed ) raised at line 1918 of ../nsapi/URL.cpp
    Another thing I want to point out is if I modify the mod_wl_ohs.conf file to turn off WLProxySSL to OFF and SecureProxy to OFF and change all the secure ports
    to the unsecure ports, then restart all the OHS processes that the OHS server forwards the request just fine when I want to hit the application by HTTP...
    Edited by: we**** on May 14, 2012 10:23 AM
    Edited by: we**** on May 14, 2012 10:26 AM

    we**** wrote:
    Sun May 13 23:49:11 2012 <2671213369673416> Trying a pooled connection for 'nn.nn.nnn.nnn/7002/7002'Re-check your config. It appears you have mis-configured the host and port entries for your weblogic server. The port number shouldn't be repeated.

  • Query string is null while dispatching the request in Websphere for Endeca pages

    Hi,
    When AssemblerPipelineServlet forward the request with dispatcher the query string is missing from the request in Websphere 7.0 only(works fine in JBOSS).
    This is happening only for the pages those are created in the Experience Manager.
    Ex: /store/us/detail?A=1204455 - This URL will render the /cartridges/ProductDetail/ProductDetail.jsp page. When we access the /OriginatingRequest.queryString in the JSP, it is giving null.
    Please help us to resolve this issue.
    Regards,
    Ravinder P

    Got the solution to this problem . I was using wlClient.jar & WlfullClient.jar in my classpath . removed wlClient.jar from java client app and now i am able to get the IWorkflowContext object.
    Hope this helps for the coming generations :)
    Thanks

  • Logging of Forwarded HTTP Requests using RequestDispatcher in Weblogic

    Can anyone help me on this?
    Logging of Forwarded HTTP Requests using RequestDispatcher in Weblogic
    Access Log File:
    1. I have a servlet(S1) which decides which JSP to be published based on
    some logic. If I try to forward the request from a servlet to a JSP or to
    another servlet from within S1 using RequestDispatcher, it doesn't get
    logged in the access log, only the initial request to S1 gets logged, when I
    switch on HTTP logging by setting weblogic.httpd.enableLogFile to true. Is
    there any way of logging this forwarding of request in the access log?
    2. If there is no solution for (1), I woiuld like to make entries into the
    access log file of weblogic in the common log format, when I forward a
    request to a JSP or a servlet throught the RequestDispatcher, so that I can
    use standard tools to analyze the logfile.The two issues with this are (i)
    is there any weblogic service that gives a handle to the access log file
    like the LogServicesDef which gives a handle to the weblogic log file. (ii)
    Is there any utility class available that can format a URL pointing to a JSP
    to a string confirming to the common log format.

    The log4j:ERROR messages are not coming from Log4j 2 and are most likely from Log4j 1.x. Somehow Log4j 1.x must be getting the log4j2 configuration.

  • How to conditionally forward a request to a Servlet for processing?

    Hi,
    I am writing a middleware application, where the application receives HTTPRequest from front end, and based on the URL string it will forward the request to one of the servlets which will handle the processing.
    I need ideas about what is the best way to write the forwarding logic. Should it be a Servlet Filter, or an initial Servlet that only does forwarding? Any code samples will be greatly appreciated.
    Thanks.

    This is almost textbook definition of a Controller Servlet. I would use a Servlet that switches on what option needs to be performed and forwards to the proper URL.

  • Forward a request from a filter

    Hi,
    I want to be able to access a page
    www.whatever.com/page.jsp?username=me&content=something
    with the url
    www.whatever.com/user/something
    I am thinking doing it with a filter that parses out 'user' and 'something' in the second url and forward the request to the first url. What's a way to forward a url in a filter, yet the other filters in the web app still executes?
    I have tried using the RequestDispatcher, however after the dispatcher I can not run the other filters or I will get illegleState exception. Any sugguestions? Thanks.

    From SRV.11.2 in the servlet spec:
    SRV.11.2 Specification of Mappings
    In theWeb application deployment descriptor, the following syntax is used to define mappings:
    " A string beginning with a / character and ending with a /* suffix is used for path mapping.
    " A string beginning with a *. prefix is used as an extension mapping.
    " A string containing only the / character indicates the "default" servlet of the application. In this case the servlet path is the request URI minus the context path and the path info is null.
    " All other strings are used for exact matches only.
    Filter mappings work the same way.
    The wildcards do not work the same way that they do in regular expressions.
    What you might want to do is use a mapping of *.do and then use a regular expression within your filter to decide which URL to act on and which to let pass untouched.

  • Forwarded GET requests causing problems

    I am using a feature Servlet to accept GET requests from List JSP to display an Add, Edit or Delete JSP. The Servlet is getting Model information from a repository and fowarding the request to the appropriate JSP based on Query String parameter: /MyServlet?Operation=add
    This all works fine except that the parms stay in the URL even after the Add JSP has Posted back to the Servlet, which in turn, the Servlet posts the Model information and forwards the request back to the List JSP. Back on the List JSP, the original GET URL is still there; if I press F5 a duplicate record is added.
    Is there a standard way to avoid this trap?

    BluesAl wrote:
    Do you mean that the Servlet executs a GET to the List JSP, instead of a forward? Is there any sample code anywhere for that?
    Thanks.yes, on google. "servlet redirect example". First hit:
    [http://www.java-tips.org/java-ee-tips/java-servlet/how-to-redirect-a-request-using-servlet.html|http://www.java-tips.org/java-ee-tips/java-servlet/how-to-redirect-a-request-using-servlet.html]

  • IllegalStateException when forwarding a request

    I am getting the following exception
              java.lang.IllegalStateException: Cannot forward a response that is
              already commi
              tted
              when I try to forward a request from one JSP page to another. The code
              at which which the error occurs is
              context.getRequestDispatcher("/resource/resourceView.jsp").forward(request,response);
              --Vishal
              

    Try this
              config.getServletContext().getRequestDispatcher("("/resource/resourceView.js
              p").forward(request, response);
              La
              Saravanakumar wrote in message <8is81g$fud$[email protected]>...
              >If the JSP page output is buffered (by using a page directive with the
              >default value or an explicit size set for buffer), the buffer is cleared
              >before the request is forwarded. If the page output is not buffered (by
              >using a page directive with buffer=none), and if anything has been written
              >to the buffer, an attempt to forward the request results in an
              >IllegalStateException.
              >
              >
              >Vishal Vishnoi <[email protected]> wrote in message
              >news:[email protected]..
              >> I am getting the following exception
              >>
              >> -------------------------------------------------------------------------
              >-----------
              >>
              >> java.lang.IllegalStateException: Cannot forward a response that is
              >> already commi
              >> tted
              >> -------------------------------------------------------------------------
              >-----------
              >>
              >> when I try to forward a request from one JSP page to another. The code
              >> at which which the error occurs is
              >>
              >>
              >context.getRequestDispatcher("/resource/resourceView.jsp").forward(request,
              r
              >esponse);
              >>
              >> --Vishal
              >>
              >
              >
              

  • Forwarding proxy requests from ports other than 80

    Hi,
    Is there a way to forward requests from ports other than 80 to the proxy address? For example, trying to define a rule to forward the requests from port 8080 to proxy_ip...
    Best regards,
    Emre

    Hi Emre,
    Have you looked into using ipfilter port redirecting ?
    It may depend on your configuration.
    /etc/ipf/ipf.conf
    pass in quick from any to any port = 8080 keep state
    pass out quick from any port = 8080 to any keep state
    /etc/ipf/ipnat.conf
    rdr <Interface> <hostname or IP> port 8080 -> <hostname or IP> port 8080 tcp
    Edited by: Hodware on Mar 4, 2013 7:24 AM

  • Domain Link - Forwarding Transport requests

    Hi Gurus,
    here is the query
    We have a two different transport domains for N landscape and for N+1 landscape.
    We wanted to bring in multiple transports into N+1 transport from N landscape and vice versa. I know we can sync the transport directories of both domains at OS level using ftp scripts etc..and import later. But wanted to check with Domain link concept, once the link is established between domains A and B., we usually forward the requests to target system and import it.
    But never tried bulk/mass forward of transports to the target systems. Is it technically possible to forward the mass TR's through RFC's between domains.
    Any hiccup we might see? please shed some light. Wanted to try this in my landscape.

    Hi Durga,
    I do not seem to have seen any such limitation that, you could face trouble while doing bulk transports using domain link. I have never used that for my customer, so I do not have any clue about any "hiccup" !! However you can check below config steps and you can try to implement this.
    So, if possible try to test in some test environment before using productively, unless some one comes up with real time experience with any issues he/she has faced with TMS domain link while used for bulk transport.
    SAP Library - Transport Management System (BC-CTS-TMS)
    and if needed,
    SAP Library - Transport Management System (BC-CTS-TMS)
    Let us know if this helps.
    Regards,
    Sujit Kumar Banerjee.

  • Error deleting VHD: There is currently a lease on the blob and no lease ID was specified in the request

    When attempting to delete a VHD's blob you may receive the following error:
    There is currently a lease on the blob and no lease ID was specified in the request
    While these errors are expected if a VHD is still registered as a disk or image in the portal, we have identified an issue where a lease remains even if the blob is not registered as a disk or image in the portal.
    If you receive one of these errors, first make sure the VHD is not in use:
    In the Windows Azure management portal, if the disk shows up under Virtual Machines,
    Disks, and the Attached To column is not blank, you should first remove that VM in the
    Attached To column by going to VM Instances, selecting the VM, then clicking
    Delete.
    If Attached To is blank, or the VM in the Attached To column was already removed, try removing the disk by highlighting it under
    Disks and clicking Delete Disk (this will not physically delete the VHD from blob storage, it only removes the disk object in the portal). If you have multiple pages of disks it can be easier to search for a specific disk by
    clicking the magnifying glass icon at the top right.
    If Delete Disk is grayed out, or the disk is not listed under Disks, but you still cannot reuse it or delete it, review the options below.
    Breaking the lease
    You can use the
    Lease Blob API to break the lease in this scenario, which is also available in the Windows Azure PowerShell assembly
    Microsoft.WindowsAzure.StorageClient.dll using
    LeaseAction Enumeration.
    To use the BreakLease.ps1 script to break the lease:
    Download Azure PowerShell by clicking Install under Windows here:
    http://www.windowsazure.com/en-us/manage/downloads/
    Start, Search, type Windows Azure PowerShell and open that console.
    Run Get-AzurePublishSettingsFile to launch a browser window to
    https://windows.azure.com/download/publishprofile.aspx to download the management certificate in a
    .publishsettings file in order to manage your subscription with PowerShell.
    Get-AzurePublishSettingsFile
    Run Import-AzurePublishSettingsFile to import the certificate and subscription information. Replace the path below with the full path to the .publishsettings file if you didn't save it to your
    Downloads folder. If you saved it to Downloads you can run it as-is, otherwise replace the path with the full path to the
    .publishsettings file.
    Import-AzurePublishSettingsfile $env:userprofile\downloads\*.publishsettings
    Copy the script below into a text editor such as Notepad and save it as
    BreakLease.ps1.
    Run Set-ExecutionPolicy to allow script execution:
    Set-ExecutionPolicy unrestricted
    Run BreakLease.ps1 with the URL to the VHD in order to break the lease. The script obtains the necessary storage account information, checks that the blob is not currently registered as a disk or as an image, then proceeds to break the
    current lease (if any).
    Sample output:
    BreakLease.ps1 -Uri 'http://clstorage.blob.core.windows.net/vhds/testvm1-testvm1-2012-06-26.vhd'
    Processing http://clstorage.blob.core.windows.net/vhds/testvm1-testvm1-2012-06-26.vhd
    Reading storage account information...
    Confirmed - storage account 'clstorage'.
    Checking whether the blob is currently registered as a disk or image...
    Confirmed - the blob is not in use by the Windows Azure platform.
    Inspecting the blob's lease status...
    Current lease status: Locked
    Unlocking the blob...
    Current lease status: Unlocked
    Success - the blob is unlocked.
    BreakLease.ps1
    Param([string]$Uri = $(Read-Host -prompt "Please specify a blob URL"))
    $ProgressPreference = 'SilentlyContinue'
    echo "Processing $Uri"
    echo "Reading storage account information..."
    $acct = Get-AzureStorageAccount | ? { (new-object System.Uri($_.Endpoints[0])).Host -eq (new-object System.Uri($Uri)).Host }
    if(-not $acct) {
    write-host "The supplied URL does not appear to correspond to a storage account associated with the current subscription." -foregroundcolor "red"
    break
    $acctKey = Get-AzureStorageKey ($acct.StorageAccountName)
    $creds = "DefaultEndpointsProtocol=http;AccountName=$($acctKey.StorageAccountName);AccountKey=$($acctKey.Primary)"
    $acctobj = [Microsoft.WindowsAzure.CloudStorageAccount]::Parse($creds)
    $uri = $acctobj.Credentials.TransformUri($uri)
    echo "Confirmed - storage account '$($acct.StorageAccountName)'."
    $blobclient = New-Object Microsoft.WindowsAzure.StorageClient.CloudBlobClient($acctobj.BlobEndpoint, $acctobj.Credentials)
    $blobclient.Timeout = (New-TimeSpan -Minutes 1)
    $blob = New-Object Microsoft.WindowsAzure.StorageClient.CloudPageBlob($uri, $blobclient)
    echo "Checking whether the blob is currently registered as a disk or image..."
    $disk = Get-AzureDisk | ? { (new-object System.Uri($_.MediaLink)) -eq $blob.Uri }
    if($disk) {
    write-host "The blob is still registered as a disk with name '$($disk.DiskName)'. Please delete the disk first." -foregroundcolor "red"
    break
    $image = Get-AzureVMImage | ? { $_.MediaLink -eq $blob.Uri.AbsoluteUri }
    if($image) {
    write-host "The blob is still registered as an OS image with name '$($image.ImageName)'. Please delete the OS image first." -foregroundcolor "red"
    break
    echo "Confirmed - the blob is not in use by the Windows Azure platform."
    echo "Inspecting the blob's lease status..."
    try {
    $blob.FetchAttributes()
    } catch [System.Management.Automation.MethodInvocationException] {
    write-host $_.Exception.InnerException.Message -foregroundcolor "red"
    break
    echo "Current lease status: $($blob.Properties.LeaseStatus)"
    if($blob.Properties.LeaseStatus -ne [Microsoft.WindowsAzure.StorageClient.LeaseStatus]::Locked) {
    write-host "Success - the blob is unlocked." -foregroundcolor "green"
    break
    echo "Unlocking the blob..."
    $request = [Microsoft.WindowsAzure.StorageClient.Protocol.BlobRequest]::Lease($uri, 0, [Microsoft.WindowsAzure.StorageClient.Protocol.LeaseAction]::Break, $null)
    $request.Timeout = $blobclient.Timeout.TotalMilliseconds
    $acctobj.Credentials.SignRequest($request)
    try {
    $response = $request.GetResponse()
    $response.Close()
    catch {
    write-host "The blob could not be unlocked:" -foregroundcolor "red"
    write-host $_.Exception.InnerException.Message -foregroundcolor "red"
    break
    $blob.FetchAttributes()
    echo "Current lease status: $($blob.Properties.LeaseStatus)"
    write-host "Success - the blob is unlocked." -foregroundcolor "green"
    Alternate method: make a copy of the VHD in order to reuse a VHD with a stuck lease
    If you have removed the VM and the disk object but the lease remains and you need to reuse that VHD, you can make a copy of the VHD and use the copy for a new VM:
    Download CloudXplorer. This will work with other
    Windows Azure Storage Explorers but for the sake of brevity these steps will reference CloudXplorer.
    In the Windows Azure management portal, select Storage on the left, select the storage account where the VHD resides that you want to reuse, select
    Manage Keys at the bottom, and copy the Primary Access Key.
    In CloudXplorer, go to File, Accounts,
    New, Windows Azure Account and enter the storage account name in the
    Name field and the primary access key in the Secret Key field. Leave the rest on the default settings.
    Expand the storage account in the left pane in CloudXplorer and select the
    vhds container (or if the VHD in question is one uploaded to a different location, browse to that location instead).
    Right-click the VHD you want to reuse (which currently has a stuck lease), select
    Rename, and give it a different name. This will throw the error
    could not rename…there is currently a lease on the blob… but click
    Yes to continue, then View, Refresh (F5) to refresh and you will see it did make a copy of the VHD since it could not rename the original.
    In the Azure management portal, select Virtual Machines,
    Disks, then Create Disk at the bottom.
    Specify a name for the disk, click the folder icon under VHD URL to browse to the copy of the VHD you just created, check the box for
    This VHD contains an operating system, select the drop-down to specify if it is
    Windows or Linux, then click the arrow at the bottom right to create the disk.
    After the portal shows Successfully created disk <diskname>, select
    New at the bottom left of the portal, then Virtual Machine,
    From Gallery, My Disks, and select the disk you just created, then proceed through the rest of the wizard to create the VM.
    Thanks,
    Craig

    Just to add an update to this, it looks like the namespaces have changed with the latest version of the SDK. I have updated the script to use the new namespaces, namely: Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob and Microsoft.WindowsAzure.Storage.CloudStorageAccount.
    Param([string]$Uri = $(Read-Host -prompt "Please specify a blob URL"))
    $ProgressPreference = 'SilentlyContinue'
    echo "Processing $Uri"
    echo "Reading storage account information..."
    $acct = Get-AzureStorageAccount | ? { (new-object System.Uri($_.Endpoints[0])).Host -eq (new-object System.Uri($Uri)).Host }
    if(-not $acct) {
    write-host "The supplied URL does not appear to correspond to a storage account associated with the current subscription." -foregroundcolor "red"
    break
    $acctKey = Get-AzureStorageKey ($acct.StorageAccountName)
    $creds = "DefaultEndpointsProtocol=http;AccountName=$($acctKey.StorageAccountName);AccountKey=$($acctKey.Primary)"
    $acctobj = [Microsoft.WindowsAzure.Storage.CloudStorageAccount]::Parse($creds)
    $uri = $acctobj.Credentials.TransformUri($uri)
    echo "Confirmed - storage account '$($acct.StorageAccountName)'."
    $blob = New-Object Microsoft.WindowsAzure.Storage.Blob.CloudPageBlob($uri, $creds)
    echo "Checking whether the blob is currently registered as a disk or image..."
    $disk = Get-AzureDisk | ? { (new-object System.Uri($_.MediaLink)) -eq $blob.Uri }
    if($disk) {
    write-host "The blob is still registered as a disk with name '$($disk.DiskName)'. Please delete the disk first." -foregroundcolor "red"
    break
    $image = Get-AzureVMImage | ? { $_.MediaLink -eq $blob.Uri.AbsoluteUri }
    if($image) {
    write-host "The blob is still registered as an OS image with name '$($image.ImageName)'. Please delete the OS image first." -foregroundcolor "red"
    break
    echo "Confirmed - the blob is not in use by the Windows Azure platform."
    echo "Inspecting the blob's lease status..."
    try {
    $blob.FetchAttributes()
    } catch [System.Management.Automation.MethodInvocationException] {
    write-host $_.Exception.InnerException.Message -foregroundcolor "red"
    break
    echo "Current lease status: $($blob.Properties.LeaseStatus)"
    if($blob.Properties.LeaseStatus -ne [Microsoft.WindowsAzure.Storage.StorageClient.LeaseStatus]::Locked) {
    write-host "Success - the blob is unlocked." -foregroundcolor "green"
    break
    echo "Unlocking the blob..."
    $request = [Microsoft.WindowsAzure.Storage.StorageClient.Protocol.BlobRequest]::Lease($uri, 0, [Microsoft.WindowsAzure.Storage.StorageClient.Protocol.LeaseAction]::Break, $null)
    $request.Timeout = $blobclient.Timeout.TotalMilliseconds
    $acctobj.Credentials.SignRequest($request)
    try {
    $response = $request.GetResponse()
    $response.Close()
    catch {
    write-host "The blob could not be unlocked:" -foregroundcolor "red"
    write-host $_.Exception.InnerException.Message -foregroundcolor "red"
    break
    $blob.FetchAttributes()
    echo "Current lease status: $($blob.Properties.LeaseStatus)"
    write-host "Success - the blob is unlocked." -foregroundcolor "green"

Maybe you are looking for

  • In Photoshop CS6 the 3D menu is grayed out

    I have Photoshop CS6 13.0.1 x64 Extended and all options under the 3D manu are grayed out. My graphic adapter is nVidia GeForce GTX 650 (it has 1024 MB memory). I have Windows 7 x64 and 8GB RAM. In Performance settings I have checked to use the graph

  • How do i change the quality settings of my printer? the options are there but greyed out!

    how do i change the quality settings of my printer? the options are there but greyed out! ie on my old HP I could print in draft if i wanted to print a doc to read and then bin...the option/box is there but greyed out so I can't select. HELP!!!

  • Need Preloader for FLVplayback Component

    Hi, I'm playing external .flv videos using the 'FLVplayback' component. My client's complaining that they stall and stutter a bit when they start to stream, and wants to know if I can create a preloader for them. Can anyone help or point me in the ri

  • I want to recycle my computer

    I have an iMac G5 that has stopped working and I will not repair. I would like to recycle it so the parts can be reused if possible. Do I take it to the Apple store or is there another, better location?

  • Start Driv

    Hi, I have a Nomad Junkebox Zen Xtra, but i cant use this, because a lost a "Instalation CD", I need the pack "3 Drivers" for run mp3player in my computer and a i cant find download in Creative official site, i find only pack atualization. Pls, someo