Tuesday 15 April 2014

appcelerator - passing large data to Titanium.Utils.md5HexDigest -


I am trying to calculate the MD5 hash for large files (about 60 MB or more). With a device, 1 GB RAM and 16 GB a Nexus 7 is not able to allocate anything more than 30 MB. The code fails with the exception of java.lang.OutOfMemory.

And there is no way to add data to a piece of pieces in titanium.utili.md5 hexagest (). For this all data is needed once.

Is there a problem that I can solve this problem?

I have searched for a product that will help me in the market. But I have not got any.

You have been mentioned that do not set the weather or download it again. So, it comes from a server somewhere. Instead of reproducing

MD5 , you should have already stored that file in that file, when the file was downloaded to the first place. Just compare the MD5 hash stored on the server. It saves you a lot of trouble, and in fact you do not need to recalculate it makes the app a lot faster < / Html>

No comments:

Post a Comment