.net - How to estimate maxReceivedMessageSize based on an uploaded file size -
i have requirement upload 1.5mb file. given serialised base64. way estimate value need use in wcf's maxreceivedmessagesize setting ?
base64 encoding increases byte[] value approximately 33% - each 6 bits mapped 1 ascii character takes 1 byte, each 3 bytes (24 bits) in input generate 4 bytes (24 / 6) in output). you're looking @ ~2mb file itself. if add other parameters in operation, plus overhead of soap (envelope , headers), should find reasonable value setting.
Comments
Post a Comment