﻿<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://developers.de/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Error while uploading blocks in Windows Azure blob storage</title><link />http://developers.de/blogs/damir_dobric/archive/2012/05/19/error-while-uploading-blocks-in-windows-azure-blob-storage.aspx<description>When trying to upload multiple blocks in the blob storage, following error can occur: HTTP/1.1 400 The value for one of the HTTP headers is not in the correct format. Content-Length: 321 Content-Type: application/xml Server: Windows-Azure-Blob/1.0 Microsoft</description><dc:language>en</dc:language><generator>CommunityServer 2008 SP1 (Build: 30619.63)</generator><item><title>re: Error while uploading blocks in Windows Azure blob storage</title><link />http://developers.de/blogs/damir_dobric/archive/2012/05/19/error-while-uploading-blocks-in-windows-azure-blob-storage.aspx#510961<pubdate>Mon, 21 Jan 2013 22:20:32 GMT</pubdate><guid ispermalink="false">7e491611-45ad-4dae-a68f-c4cb64439510:510961</guid><dc:creator>Hrvoje</dc:creator><description>&lt;p&gt;I checked my blockid names, but they&amp;#39;re same length! I use this formula to get blockid string:&lt;/p&gt;
&lt;p&gt;string blockId = Convert.ToBase64String(BitConverter.GetBytes(_id));&lt;/p&gt;
&lt;p&gt;_id goes 1,2,3 ...&lt;/p&gt;
&lt;p&gt;and blockId is something like AAAAA==, AwAAA==, AqAAA==, so size is equal for all.&lt;/p&gt;
&lt;p&gt;error is this:&lt;/p&gt;
&lt;p&gt; Microsoft.WindowsAzure.Storage.StorageException: The remote server returned an error: (400) Bad Request. ---&amp;gt; System.Net.WebException: The remote server returned an error: (400) Bad Request.&lt;/p&gt;
&lt;p&gt;StatusMessage:The value for one of the HTTP headers is not in the correct format.&lt;/p&gt;
&lt;p&gt;ErrorCode:InvalidHeaderValue&lt;/p&gt;
&lt;p&gt;but, what&amp;#39;s interesting, everything is saved to blob! Why this 400 error then?&lt;/p&gt;
&lt;p&gt;thanx Damir!&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://developers.de/aggbug.aspx?PostID=510961" width="1" height="1"&gt;</description></item></channel></rss>