Hey delphi people,
I'm struggling with newbie questions again, I'm supposed to conjure up an app that's supposed to
A) let the user browse for a image file on his/her computer
B) show a TImage of what he chose
C) automatically thumbnail that image to a 100*75 px
D) then save both files to a server folder
now the A and B even a delphi newbie like me could handle but C and D are proving to be a quite a handful.
For some time now I've been trying to get my app to FTP them over to the server but I've had NO luck at all. So I thought would it be easier to somehow just save those files (the original pic & thumbnail) to the server location, because both the users computer and the server are on the same network, and I could give full rights to the users computer to the server? Or am I wrong? Is there a easy source for FTP:ing a file to a specified location?
What I've simply done so far, if this clears this up at all, is
I'd really need ANY help you guys/gals could spare on this, this app has been bugging me for a long time.. :/
-J
I'm struggling with newbie questions again, I'm supposed to conjure up an app that's supposed to
A) let the user browse for a image file on his/her computer
B) show a TImage of what he chose
C) automatically thumbnail that image to a 100*75 px
D) then save both files to a server folder
now the A and B even a delphi newbie like me could handle but C and D are proving to be a quite a handful.
For some time now I've been trying to get my app to FTP them over to the server but I've had NO luck at all. So I thought would it be easier to somehow just save those files (the original pic & thumbnail) to the server location, because both the users computer and the server are on the same network, and I could give full rights to the users computer to the server? Or am I wrong? Is there a easy source for FTP:ing a file to a specified location?
What I've simply done so far, if this clears this up at all, is
Code:
procedure TMyApp.AddPicture1Click(Sender: TObject);
begin
if OpenPictureDialog1.Execute then
begin
if OpenPictureDialog1.FileName <> '.' then
filename1 := OpenPictureDialog1.FileName;
Edit1.Text := filename1;
Image1.Picture.LoadFromFile(OpenPictureDialog1.Filename);
end;
end;
I'd really need ANY help you guys/gals could spare on this, this app has been bugging me for a long time.. :/
-J