Java Inputsream Hascode Is Different Each Time Even When The Request Is Same
I have a query not particular to UniversalImageLoader but because i am trying to use the content stream to load the image i am facing following issue. I am using input stream 'stre
Solution 1:
The basic problem of hash code equal like the sample above where you will find that the second log hash code is different than first log hash code even if the inputStream object used is same.
//String imageId = "stream://" + inputStream.hashCode();
//Log.d("ImageId :: 1 ::", "file id : " + fileId + "hashcode: " + imageId);
//String imageId2 = "stream://" + cmServiceGateway.GetContentAsStream(fileId).hashCode();
//Log.d("ImageId :: 2 ::", "file id : " + fileId + "hashcode: " + imageId2);
Although not answering the above question exactly but I am able to resolve this problem by not passing the hashcode to the universal image loader as id. Instead i passed the unique file Id's and it worked well now to display image from memory cache.
Post a Comment for "Java Inputsream Hascode Is Different Each Time Even When The Request Is Same"