Click here to Skip to main content
11,806,931 members (60,072 online)


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

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 @

AnswerRe: how resize this image before uploading Pin
jkirkerx22-Jan-13 12:25
memberjkirkerx22-Jan-13 12:25 
AnswerRe: how resize this image before uploading Pin
Richard Deeming23-Jan-13 1:53
memberRichard Deeming23-Jan-13 1: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
Web02 | 2.8.151002.1 | Last Updated 9 Oct 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid