2012-07-30 63 views
2

當我試圖上傳100MB的文件到Azure的Blob存儲,使用createBlockBlobFromStream()從蔚藍的節點SDK,我收到此錯誤:「RequestBodyTooLarge」試圖通過節點createBlockBlobFromStream()上傳的Blob到Azure存儲時

error: { code: 'RequestBodyTooLarge', 
    message: 'The request body is too large and exceeds the maximum permissible limit. 
    maxlimit: '67108864' } 

任何想法?最大blob大小似乎是200GB,或50.000塊。我檢查了常量,塊大小設置在4MB,這是最大的。 SDK錯誤,或者我錯過了什麼?

+0

您是否找到任何解決方案? @bbbonthemoon – a8m 2014-11-23 17:54:43

回答

2

以下是documented

If you attempt to upload a block blob that is larger than 64 MB, or a page blob larger than 1 TB, the service returns status code 413 (Request Entity Too Large). The Blob service also returns additional information about the error in the response, including the maximum blob size permitted in bytes.

您可能要檢查createBlockBlobFromStream()來驗證它使用的不到4MB塊大於64MB的文件上傳。例如,您可以使用Fiddler來驗證實際的REST操作,並且應該很快顯示createBlockBlobFromStream()嘗試執行什麼操作。

+1

快速瀏覽一下代碼,它看起來像'createBlockBlobFromStream'不會嘗試將大流分解爲塊。 – smarx 2012-07-31 02:16:06

相關問題