![]() |
|
|
|
#1 |
|
Hi,
I want to upload an image to my web server. Uploading simple images work fine but when i tried to upload the generated thumnnail to another folder named Thumb, i can't. It works fine in local system but not in web server so I think that there may be some problem in my uploading code( may be in the last line of my code). Please do some modification with this code so that I can upload the image to the Web Server also... Please help me...its a very urgent task for me... Thanks, Tapas Code: // Get the path of the original Imagestring displayedImg = Server.MapPath("./images/") +this.txtPCode.Text+".jpg"; string path=Server.MapPath("/images/"); // Get the path of the Thumb folderstring displayedImgThumb = Server.MapPath("./Thumb/"); // Get the original image file namestring imgFileName = Path.GetFileName(displayedImg); // Load original image System.Drawing.Image myimg = System.Drawing.Image.FromFile(displayedImg); // Get the thumbnail 50 X 50 pxmyimg = myimg.GetThumbnailImage(50, 50, null, IntPtr.Zero); // Save the new thumbnail image myimg.Save(displayedImgThumb + imgFileName, myimg.RawFormat); tapasmahata |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Upload image to wwwroot as thumbnail... | tapasmahata | Software | 0 | 01-24-2008 11:20 AM |
| image upload in asp .net 2.0 | needo | General Help Related Topics | 1 | 08-26-2007 01:59 PM |
| SQL Server 2005 Migration Assistant Autonumber problem. | LarryWestMCSD | MCTS | 1 | 03-28-2007 02:08 AM |
| Die Another Day - image problem towards end of film. | Larry L. | DVD Video | 1 | 09-24-2003 04:30 AM |
| Re: Need Ideas For A New Server, Long Post | Gareth Church | A+ Certification | 2 | 07-27-2003 12:46 PM |