Is it normal that comparing 2 files byte per byte using InputStream can take a huge amount of time (maybe one hour or more). I'm talking about a 4.3megabyte file.
code is something like (I'm not in front of the PC)
then I iterate trough the array using a counter inside a timer with 20ms (cant be much lower or I get errors)
(can't use a for...next loop, as I need to update the UI with a byte compare counter and with a for..next I can't update the label text)
If some one has a better idea, or some help, I would be gratefull.
Many thanks.
code is something like (I'm not in front of the PC)
B4X:
Private bytesOriginal(LocalFileSize) As Byte
Private bytescopy(copySize) As Byte
bytesOriginal=Bit.InputStreamToBytes(LocalFile)
bytesCopy=Bit.InputStreamToBytes(copyFile)
then I iterate trough the array using a counter inside a timer with 20ms (cant be much lower or I get errors)
(can't use a for...next loop, as I need to update the UI with a byte compare counter and with a for..next I can't update the label text)
If some one has a better idea, or some help, I would be gratefull.
Many thanks.