Click here to Skip to main content
15,894,343 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hello ,

Thanks in advance.

I would like to tell you I have already googled for same but I am unable to find write code.

I have uploaded jpg image file on server successfully. Now on Show button click event I want to show that file on PictureBox.

For better understanding, lets take example I have stored 10 images with names from 0.jpg to 9.jpg .

On window I have 3 controls , text box , show button and picture box.

When I type 0.jpg in text box, and click on show button 0.jpg stored at ftp server should be shown in picture box.

I hope you have understood my task. Please guide me how I can do it.
Posted
Comments
Joan Magnet 24-Aug-15 8:56am    
Have you tried to use .Load('ftp url') function.
[no name] 24-Aug-15 9:14am    
Can we integrate username password in it.
Joan Magnet 24-Aug-15 9:25am    
No, I use edtFtp free library to download the file locally and then use Load('image path') to show it.
[no name] 25-Aug-15 0:34am    
Hello,

Can we load image in picture box without storing locally ?
Joan Magnet 25-Aug-15 3:09am    
As far as I know edtFTP does not allow to get an Image or Bitmap object. You need to download it first.

All you need is to use the class FtpWebRequest: https://msdn.microsoft.com/en-us/library/system.net.ftpwebrequest%28v=vs.110%29.aspx[^].

—SA
 
Share this answer
 
v2
Comments
[no name] 24-Aug-15 9:16am    
Hello ,

I have seen all options. I want specific answer to save my time.
Sergey Alexandrovich Kryukov 24-Aug-15 9:23am    
I thought you are the one interested in solution the most.
—SA
[no name] 25-Aug-15 0:36am    
Ya I am. I gone through all solutions you provided.

My problem statement is very clear. I have many images at ftp server and I want load them in picture box without downloading in local machine.
Sergey Alexandrovich Kryukov 25-Aug-15 1:18am    
Yes, you are right; I think I misread your question at first. Please see my fixed answer, edited.
—SA
[no name] 25-Aug-15 1:30am    
Ya I agree with you I have to use FtpWebRequest class.

Only one thing I want know, Is it possible to load image in picture box without downloading it on local machine.

I am using .net 3.5 windows form application.
there are many 3rd party dll like CHILKAT is available for FTP or SFTP upload.
They are very simple to use. You can use as per your requirement just by adding dll in your project.

-GS
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900