path / FastImageCache

iOS library for quickly displaying images while scrolling
MIT License
8.11k stars 935 forks source link

Incompleted chunk processing #147

Closed yoon-boom closed 7 years ago

yoon-boom commented 7 years ago

First of all, I have limited time and knowledge to understand the lower level implementation. Here is what I am doing.

  1. Download Physical files.
  2. Once, have physical file then request asynchronouslyRetrieveImageForEntity:withFormatName:completionBlock:
  3. load image from completion block. At this point, bitmap array might have interrupted not filling expected bytes.

I want to know, is there any built in method to check bitmap has been completed? So that I can check incompleted one and re-do processing? Thank you. ORIGINAL: 0000278967487c77_m

Image from FICImageTable

image
yoon-boom commented 7 years ago

Self closing this issue. Because it was not FIC problem but my handling of downloading outputstream. Ended up comparing it from response header-> Content-Length between the physical file byte [[[NSFileManager defaultManager] attributesOfItemAtPath:tmpImgPath error:&possibleFileError] fileSize] solved my issue.