Click here to Skip to main content
       

ASP.NET

 
Questionhow resize this image before uploading PinmemberJassim Rahma22-Jan-13 9:44 
Hi,
 
I am using this code to upload using Ajaxuploader:
 
using (Stream stream = item.OpenStream())
{
    using (System.Drawing.Image img = System.Drawing.Image.FromStream(stream))
    {
        img.Save(Server.MapPath(String.Format("{0}/{1}/posts/{2}/{3}.png", Application["MemberMediaDirectory"], Session["volow_member_guid"], RouteData.Values["GUID"], image_guid)), ImageFormat.Png);
    }
}
I want to know how can I resize the image before uploading to 906width X 360height?

 
Technology News @ www.JassimRahma.com

AnswerRe: how resize this image before uploading Pinmemberjkirkerx22-Jan-13 13:25 
AnswerRe: how resize this image before uploading PinmemberRichard Deeming23-Jan-13 2:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web03 | 2.8.1411023.1 | Last Updated 27 Nov 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid