, , . PDF, base64, - .NET, PDF .
:
- ASIHTTPRequest -.
- TBXML xml base64 NSString.
- , QSUtilities, decodeBase64WithString.
- , NSData writeToFile.
I tested and successfully used this method with PDF files that are up to 25 MB. I also had some test runs with a 48 MB file, but the decodeBase64WithString method in this file took up too much memory and my application crashed. We have not found a solution yet.
If you work with several large files, be sure to free your memory from time to time. I got all my files in one loop, in which I had to use my own nsautorelease pool and merge it at the end of the loop to free up any objects with auto-implementation.
source
share