2013-07-06 31 views
1

我有一個簡單的Android應用程序,它從相機拍攝一張照片,然後將圖像轉換爲Base64字符。然後我將這個字符串發送到一個web服務,並且webservices將這個Base64轉換爲二進制文件,然後該圖像最終保存在服務器上。我可以通過POST/GET發送多少個字節?

然而,它的工作小圖片,但我想這是不可能做一個視頻或高分辨率的圖像。

你們知道限制在哪裏嗎?我想這與你可以通過請求上的參數發送多少個字符直接相關,但是找不到任何關於這個的信息。

回答

1

如果你讀了以下標準,你可以看到,不應該有限制,但Web服務器可能有(報價從這裏http 1.1

The HTTP protocol does not place any a priori limit on the length of 
a URI. Servers MUST be able to handle the URI of any resource they 
serve, and SHOULD be able to handle URIs of unbounded length if they 
provide GET-based forms that could generate such URIs. A server 
SHOULD return 414 (Request-URI Too Long) status if a URI is longer 
than the server can handle 

據我知道的極限apache是​​4000個字符長的GET請求

對於POSTs應該不會有任何限制

+0

謝謝。我猜如果它崩潰,它會在Web服務器上相關的東西。 – Reinherd

+0

http://php.net/manual/en/ini.core.php#ini.post-max-size –

相關問題