Click here to Skip to main content
12,999,833 members (48,586 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    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.

Advertise | Privacy | Mobile
Web02 | 2.8.170624.1 | Last Updated 23 Jun 2017
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid