Home > Back-end >  About XE10 Android APP FTP upload pictures to the server directory
About XE10 Android APP FTP upload pictures to the server directory

Time:09-15


IdFTP1. Username:='ftp27AA';
IdFTP1. Password:='XXXXXX';
IdFTP1. Port:='21';
IdFTP1. Host:='103.46.66.88';

IdFTP1. Connect;

Stream:=TMemoryStream. Create;
Image1. Bitmap. SaveToStream (Stream);
Stream. Position:=0;

IdFTP1. Put (Stream, S_remote_file_name, true);
Showmessage (' upload success);




1: use the computer to upload pictures, the same size, normal uploaded to the FTP directory, - "success,
2: the mobile phone software APP upload, but in IdFTP1. Put (Stream, S_remote_file_name, true); (this line card for a long time, not a network problem,)
Also can't see the prompt: 'uploaded successfully,

Check the FTP directory, has been uploaded to the pictures, I'm glad, but can't open the picture, to withdraw from mobile phone software APP can open the picture look, is this why? What is going wrong?

CodePudding user response:

Supplement: usually use JPG upload test,
  • Related