Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sending a jpg to a server from a delphi app 1

Status
Not open for further replies.

d2ned

Programmer
Jun 27, 2003
37
FI
Hey people,

I made an website update program with delphi 7 for a non-profit organisation where they inform people about free apartments and such in my city. I originally made it so the user could input the pictures name (1024.jpg) into a text box but looks like this is not enough because it would seem that these people don't know how to copy those files onto a server and I can't do this for them for the rest of my life :)

So, I promised them that I'd modify the app so that they could simply select the thumbnail and full size picture from their hard drive, and by clicking the app would then send the picture to the servers' specified folder.

I've gone through literally hundreds of articles and delphi help but seems like nothing even comes close. Is this even possible using just delphi 7?
 
hey,

this really doesn't matter. the more simple the solution the better.
 
hi again,

oh yes, this I forgot to mention completely. Everything rights-wise can be arranged, because I have complete adminstrational rights over the server. So, basically, I can for example grant full rights for the user/computer who is running the app. So this is not a problem.
 
so,

if I understand this correctly your app must do following things :

a) show a "browse files" dialog, with thumnail view if user clicks on an image file

b) when user clicks 'OK', send the selected file to the webserver.

is this what you want?

 
Hey whosrdaddy,

this is exactly what I'm trying to achieve. Are you saying this CAN be done with delphi easily?
 
this not difficult at all in delphi.

I just googled around a bit and found several interesting links. here's one for an example.


the "file transfer" function implementation depends on what you want to use. It can be ftp, windows shell copying, your own socket code,... .

If you want some sample code, I will spent some time this week-end writing it, but I think there's enough already to be found on the internet. (for example google "thumbnail dialog delphi" and you'll see what I mean)

cheers

 
Thanks for the link,

but this wasn't right on the money what I was looking for, because the torry.net's example lacked the file transfer example. I'll try digging up some more on the subject, I did actually make some promising finds using ur search words, but it would seem that this is not a subject covered very frequently :/

I'd appreciate ANY help/experience You or anyone else could spare on this matter, because I'm pretty much stuck with this as it is. Here's a star for your troubles so far anyhow!

-J

 
And to clarify further,

these 2 machines, (users computer & the server) ARE in the same network and the server can be easily accessed through - for example - windows folders and such. But since I have absolutely NO clue which transfer method is the easiest & most reliable, I'd be very grateful for any suggestions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top