tag:blogger.com,1999:blog-8397795.post112608811813334312..comments2020-11-15T19:39:18.814+10:00Comments on Rufan-Redi: Upload and resize an image with ASP.NET (VB.NET)Offbeatmammalhttp://www.blogger.com/profile/13389020891211814116noreply@blogger.comBlogger26125tag:blogger.com,1999:blog-8397795.post-48290828264229882272011-10-28T13:55:30.786+10:002011-10-28T13:55:30.786+10:00@Kathy - sounds like a permissions issue (describe...@Kathy - sounds like a permissions issue (described earlier in comments)<br /><br />@David - no video tutorial. What problem/error are you having?Offbeatmammalhttps://www.blogger.com/profile/13389020891211814116noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-35077401095551283522011-05-28T11:57:46.456+10:002011-05-28T11:57:46.456+10:00Where can I view the video tutorial on this? My co...Where can I view the video tutorial on this? My colleague said he viewed a tutorial on this but I can't find the link.<br /><br />Thanks<br /><br />(I can't get it to work)Davidhttp://balticquarter.co.uknoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-19713594223329819082010-07-26T17:59:40.973+10:002010-07-26T17:59:40.973+10:00Kudos, Rufan-Redi! :)
Script worked for me, thoug...Kudos, Rufan-Redi! :)<br /><br />Script worked for me, though I had to revise the directory from:<br />Const upload_dir = "/upload_resize_test/"<br />TO<br />Const upload_dir = "~/upload_resize_test/"<br />to correct the 'Failed to map the path '/upload_resize_test/sample.jpg'.' error I was getting.<br /><br />Nonetheless, this is exactly what I am looking for.thingamajighttps://www.blogger.com/profile/17276302686333283825noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-65195228287203674972009-06-17T14:25:55.538+10:002009-06-17T14:25:55.538+10:00Invitation to new programming Resources Website
...Invitation to new programming Resources Website<br /><br /><br /><br />Dear Sir,<br /><br />I hope you are doing well. I got this email address from one of your contribution web site. I have launched a web site www.codegain.com and it is basically aimed C#,JAVA,VB.NET,ASP.NET,AJAX,Sql Server,Oracle,WPF,WCF and etc resources, programming help, articles, code snippet, video demonstrations and RRavehttps://www.blogger.com/profile/02162942492813501463noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-88129040848275604082009-05-22T08:43:41.649+10:002009-05-22T08:43:41.649+10:00I have an error:
A generic error occurred in GDI+....I have an error:<br />A generic error occurred in GDI+.<br />System.Drawing<br />at System.Drawing.Image.Save(String filename, ImageCodecInfo encoder, EncoderParameters encoderParams) at System.Drawing.Image.Save(String filename, ImageFormat format) at ASP.at_ur_aspx.__Render__control1(HtmlTextWriter __w, Control parameterContainer) in C:\WebSites\ur.aspx:line 65Hasanhttp://www.innovacube.com/noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-20268550268086280522009-03-15T01:11:00.000+10:002009-03-15T01:11:00.000+10:00I use this asp.net webcontrol:http://i-load.radact...I use this asp.net webcontrol:<BR/><BR/>http://i-load.radactive.com/en/<BR/><BR/>it saved me a lot of time.<BR/><BR/>Regards<BR/>MarkusAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-63985216588496935522009-02-11T22:23:00.000+10:002009-02-11T22:23:00.000+10:00hi.Date of this post is September 07, 2005. And I'...hi.<BR/>Date of this post is September 07, 2005. And I'm writing on February 02, 2009. This script is fabulous. Thanks for sharing it. I'll be using it in most of my projects. By the way, the only problem I got is the server mappath which is completely related with my own server/hosting. Check your mappath and directory permissions if you got any error. This should work for all using asp.net. Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-82292802637714230302008-11-22T14:11:00.000+10:002008-11-22T14:11:00.000+10:00Amazing script. If you want to use within update p...Amazing script. If you want to use within update panel you have to allow a full postback when you click the upload button; i.e., create a full postback trigger within the update panel using the upload button as the trigger.<BR/><BR/>Thanks again!<BR/><BR/>pcano@inducosoft.comAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-26693728239642575432008-07-03T21:26:00.000+10:002008-07-03T21:26:00.000+10:00hi, nice script. could you pleaes explain how to g...hi, nice script. could you pleaes explain how to get this working for multiple images? i have 15 image boxes. also, i need to keep the original filenames. is this possible? many thanksAMRhttps://www.blogger.com/profile/17582974512158138590noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-20514293626475281992008-06-30T19:38:00.000+10:002008-06-30T19:38:00.000+10:00i resolved the problem by using the orignal images...i resolved the problem by using the orignal images rawformat as you have done. this brought the file size down considerably. thanks for your help. great work.Mitchyhttps://www.blogger.com/profile/09002453318833541158noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-73257644219317289692008-06-30T17:17:00.000+10:002008-06-30T17:17:00.000+10:00i tried this but the file size of the resized imag...i tried this but the file size of the resized images is still very large. i am resizing to 640x480 and most image file sizes are around 400k which is way too large. have you been able to resolve this?Mitchyhttps://www.blogger.com/profile/09002453318833541158noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-17923415607438713582008-06-16T03:35:00.000+10:002008-06-16T03:35:00.000+10:00How about using a code-behind file instead of a sc...How about using a code-behind file instead of a script?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-70632733912534442442008-04-14T23:42:00.000+10:002008-04-14T23:42:00.000+10:00Fantasic code. Worked great. Thank youFantasic code. Worked great. Thank youUnknownhttps://www.blogger.com/profile/16349304321374629101noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-74742311091177329882008-01-25T06:52:00.000+10:002008-01-25T06:52:00.000+10:00hey this is ManishThanks a ton for the script.... ...hey this is Manish<BR/>Thanks a ton for the script.... i seriously needed this script.... you have done a great job....<BR/><BR/>if there are other such codes using asp.net 2.0 vb i would love to go though it.....<BR/><BR/>i agree u r a star!!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-16039287575131869652007-11-07T01:33:00.000+10:002007-11-07T01:33:00.000+10:00Doesnt work for me...i get the following error:-"S...Doesnt work for me...i get the following error:-<BR/><BR/>"Sorry, there was a problem saving the image.A generic error occurred in GDI+."Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-58620451373645023042007-10-02T07:03:00.000+10:002007-10-02T07:03:00.000+10:00I agree with the previous posting...probably an er...I agree with the previous posting...probably an error on line 33. Great job otherwise, will use it as a proof-of-concept that resizing a picture (either up or down) automatically can be done. Probably won't end up as production code.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-80414974495721235612007-08-10T07:35:00.000+10:002007-08-10T07:35:00.000+10:00Congratulations, great job!But I think that this s...Congratulations, great job!<BR/>But I think that this script has an error at line 33.<BR/><BR/>Current code:<BR/> If (originalImg.Width / Lx) > (originalImg.Width / Ly) Then<BR/><BR/>Revision:<BR/> If (originalImg.Width / Lx) > (originalImg.<B>Height</B> / Ly) Then<BR/><BR/>I hope it helps. See you!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-44641067879696186022007-05-04T08:23:00.000+10:002007-05-04T08:23:00.000+10:00This script is awesome.But didnt work in update pa...This script is awesome.<BR/><BR/>But didnt work in update panel of ajax.<BR/><BR/>this script is work well in ie6 and ff and operaYĆ¼cel Kandemirhttps://www.blogger.com/profile/15542286008031759130noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-20821567790818513422007-03-08T16:47:00.000+10:002007-03-08T16:47:00.000+10:00Never worked for me.Never worked for me.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-27355190391968830232007-01-15T14:19:00.000+10:002007-01-15T14:19:00.000+10:00I have a vb.net application accessing online DB an...I have a vb.net application accessing online DB and I need to upload an image thru vb.net(not to the DB). Is this possible and can anyone give me a sample code?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-1161884588836011822006-10-27T03:43:00.000+10:002006-10-27T03:43:00.000+10:00Thank You! I've looked for over 5 hours for some n...Thank You! I've looked for over 5 hours for some nice code to only allow images to be uploaded. Thank you for your well thought out excellant code. You're a star!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-1161825063308103122006-10-26T11:11:00.000+10:002006-10-26T11:11:00.000+10:00@ previous comment... do you have write permission...@ previous comment... do you have write permissions on the server you're trying to upload to? If the script isn't allowed to write you'll run into a problem ;)Offbeatmammalhttps://www.blogger.com/profile/13389020891211814116noreply@blogger.comtag:blogger.com,1999:blog-8397795.post-1161816037231126232006-10-26T08:40:00.000+10:002006-10-26T08:40:00.000+10:00Doesn't work for me "Cant save file" error returne...Doesn't work for me "Cant save file" error returned when I try to run example.<BR/><BR/>Regards,Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-1154443006878303822006-08-02T00:36:00.000+10:002006-08-02T00:36:00.000+10:00Doesn't work with animated gif's :(Doesn't work with animated gif's :(Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8397795.post-1153216073884070652006-07-18T19:47:00.000+10:002006-07-18T19:47:00.000+10:00hmmm. weird. I've tested the sample version (linke...hmmm. weird. I've tested the sample version (linked from the post) in IE6, IE7 and FF (and Safari as well) and not had any problem.<BR/>The version in the script is limited to 25kb uploads.<BR/>if you're still stuck hop over to http://www.rufan-redi.com/contact.php and say Hi and I'll see if we can track the problem down...Offbeatmammalhttps://www.blogger.com/profile/13389020891211814116noreply@blogger.com