Windows Develop Bookmark and Share   
 index > Windows Forms General > Upload image to a folder and save the path to the database in VB.Net
 

Upload image to a folder and save the path to the database in VB.Net

I have not done this before...I am hoping someone point me to existing sample posted previously.

I tried to create a Windows form that would allow user upload image and save to a permanent folder at the server and the image is croped to fit to a image holder in the Windows form. The path of the image is saved to a databse for retrieving.

Any suggestion is graetly appreciated.
pmak  Monday, September 21, 2009 7:02 PM
Do you want to upload the file via ftp, http or just a network connection?
Geert van Horrik - CatenaLogic
Visit my blog: http://blog.catenalogic.com

Looking for a way to deploy your updates to all your clients? Try Updater!
Geert van Horrik  Tuesday, September 22, 2009 8:11 AM

Hi pmak,

Before go any further, could you please answer the questions below?

1. What is the structure of your application, cs or bs? In other words, is the application server on the server machine a web server or a program developed by yourself?

2. Where is the data base, is it on the client machine, the server machine of another machine?

3. What type of protocol are you used?

From my experience, when we develop a client server application, we often choose the .Net remoting, web service or a new architecture: WCF. We can add a method which is responsible to handle the file uploading and saving data to the database. Then we need to encapsulate the method to a service. In the client application, we only need to call this service.

These are some documents about them:
WCF: http://msdn.microsoft.com/en-us/library/ms735119.aspx
.Net remoting: http://msdn.microsoft.com/en-us/library/kwdt6w2k(VS.71).aspx

Please feel free to tell me if you need a code snippet or more information.

Regards,
Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, September 23, 2009 7:10 AM

Hi,

We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions.

Aland Li


Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.
Aland Li  Wednesday, September 30, 2009 2:20 AM

You can use google to search for other answers

Custom Search

More Threads

• How to get rid of very first auxilary column in DataGrid?
• ListView: HideSelection and Scrollable properties
• Dock Style
• variables with preceeding underscore line ( _ )
• Disposing UserControls in WindowsApplication
• Global exception handler for multi-thread application using the Application framework
• Adding a timer to a StatusStrip
• TreeView: text formatting and images of nodes.
• Question About "Contra Variance" Introduced for Delegate Parameter
• How to cope with different lengths of labelsâ€?dynamic layout