11-08-2023, 03:00 PM
LitDev,
Bear with me I am trying to understand this. In the original code "long num = webResponse.ContentLength" it is wanting num to be > 0. That isn't set in the webResponse. In your code you are setting readcount from the stream.read. and that value is greater than 0. Is my thinking right?
So, in conclusion we are better off not using network.download or imagelist.loadimage because it will sometimes not work. Best to use ldbasic.downloadfile() and ldbasic.loadimage() which should always work.
Good sleuthing!
JR
Bear with me I am trying to understand this. In the original code "long num = webResponse.ContentLength" it is wanting num to be > 0. That isn't set in the webResponse. In your code you are setting readcount from the stream.read. and that value is greater than 0. Is my thinking right?
So, in conclusion we are better off not using network.download or imagelist.loadimage because it will sometimes not work. Best to use ldbasic.downloadfile() and ldbasic.loadimage() which should always work.
Good sleuthing!
JR