Brian Culverwell 0 Posted October 19, 2020 I have successfully implemented SSL transfer of files but my client reports that some images are not fully transferred.... they think it is some timeout? My code is thus: HttpsGetFile := THttpsGetFile.Create(Application); OverbyteGetFile1.Url := arg2; OverbyteGetFile1.TempFolder := BpcGetTempDir; HttpsGetFile.GetRemoteFile; it looks like the GetRemoteFile is timing out and not getting the full contents of the file? If you could help in any way that would be most appreciated. Share this post Link to post
Brian Culverwell 0 Posted October 19, 2020 35 minutes ago, Brian Culverwell said: I have successfully implemented SSL transfer of files but my client reports that some images are not fully transferred.... they think it is some timeout? My code is thus: HttpsGetFile := THttpsGetFile.Create(Application); OverbyteGetFile1.Url := arg2; OverbyteGetFile1.TempFolder := BpcGetTempDir; HttpsGetFile.GetRemoteFile; it looks like the GetRemoteFile is timing out and not getting the full contents of the file? If you could help in any way that would be most appreciated. Share this post Link to post
Angus Robertson 577 Posted October 19, 2020 THttpsGetFile is not an ICS component. It may be derived from an ICS component, but you need to ask whoever wrote it. Angus Share this post Link to post
Brian Culverwell 0 Posted October 19, 2020 Thanks Angus I am sure it is part of ICS but if not, is there another example using ICS that can download files from https? Best regards Brian Share this post Link to post
Angus Robertson 577 Posted October 19, 2020 As I said, it may use ICS components, but is not part of the ICS distribution. Need to see the source code to know who wrote it and how. For simple file downloads build the OverbyteIcsXferTst.dpr sample and try HTTP Downloads. Angus Share this post Link to post
Brian Culverwell 0 Posted October 19, 2020 Angus - the THttpsGetFile was declared in one of the samples so I used that. Share this post Link to post
Brian Culverwell 0 Posted October 19, 2020 Thanks again - I will try the OverbyteIcsXferTst.dpr sample and see if I can get an upload from a https server... Share this post Link to post
Brian Culverwell 0 Posted October 19, 2020 tried that and success! Now just to put that code into my project. Thanks for all your help Angus. Regards Brian Share this post Link to post
FPiette 385 Posted October 20, 2020 11 hours ago, Brian Culverwell said: THttpsGetFile was declared in one of the samples I cannot find it. What is the sample project name? Look into the source and see if you can find who wrote it? Where did you have downloaded this sample? Make sure you have the latest ICS source code Share this post Link to post
Angus Robertson 577 Posted October 20, 2020 THttpsGetFile was probably one of the many Usermade components written 20 years ago and not touched since. But he now has a modern version. TIcsHttpMulti. Angus Share this post Link to post