Did you already try (use a counter add 42 to lineCntr read from file <filePath> for 42 lines --> placed into it (check the result for empty or "eof") Note. The file contains base64 encoded imagedata (which is in one long line). Such a line may be too long to display in a LC field (-> may cause a hang). So use the data only from variables.