Click here to Skip to main content
15,895,256 members
Home / Discussions / ASP.NET
   

ASP.NET

 
Questionhow resize this image before uploading Pin
Jassim Rahma22-Jan-13 8:44
Jassim Rahma22-Jan-13 8:44 
Hi,

I am using this code to upload using Ajaxuploader:

C#
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 Pin
jkirkerx22-Jan-13 12:25
professionaljkirkerx22-Jan-13 12:25 
AnswerRe: how resize this image before uploading Pin
Richard Deeming23-Jan-13 1:53
mveRichard Deeming23-Jan-13 1:53 

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

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