Hi, I am building an app that will/does save an image via a picturebox, i will be using a remote database. before i have done this by using (blob) direct to the database but is this bad practise as it seems to be a large file in the database and as it grows will query lookups start to get slow?
I know web designers usually save the image in a seperate folder then only save the url in the database, can something such as this be done in a windows form app.?
So for instance, on the save command from the button save, then ftp the image to a web path/folder then generate a url to pull it in at a later date on it's query to be viewed in the picture box?
Thanks
Loading

VulpesRank #55 · 29.2K reputationPosted Mar 24, 2012, 6:26 AM EDT
mike DelvottiRank #7,298 · 244 reputationPosted Mar 24, 2012, 7:16 AM EDT
have you seen any examples working like this, or is there any code examples you know of?
VulpesRank #55 · 29.2K reputationPosted Mar 24, 2012, 9:54 AM EDT
http://msdn.microsoft.com/en-us/library/ms229715.aspx
http://msdn.microsoft.com/en-us/library/ms229711.aspx
Another possibility would be to use a web service but I think I'd try FTP first.
mike DelvottiRank #7,298 · 244 reputationPosted Mar 24, 2012, 10:37 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Mar 24, 2012, 2:45 PM EDT
I do not know much about web services; I am learning too. If you want to do a quick try, create a new project; a Visual C# "WCF Service Libray". The project will be created so that the WcfTestClient tool is used for testing. Just build the project and it is ready for trying. It took me a few minutes to figure out what to do to try the web service.
mike DelvottiRank #7,298 · 244 reputationPosted Mar 25, 2012, 12:39 AM EDT
VulpesRank #55 · 29.2K reputationPosted Mar 25, 2012, 5:25 AM EDT
http://www.codeproject.com/Articles/13409/Image-Upload-Web-Service-in-C-NET