.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

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -