I am uploading image from android device to WCF service. The android phone captures 5 MB file and that file is converted to base64string and passing to WCF service. I have two problems
- if I pass small image the image will be uploaded.
- if I pass 2 MB file, the file size goes to 0 bytes and getting OUTOFMEMORY exception
here I tried two ways 1.multipartparser and 2.stream