Click here to Skip to main content
15,891,738 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: postback url of lik button and row bound of gridview Pin
Member 336757026-Feb-08 0:22
Member 336757026-Feb-08 0:22 
GeneralYahoo IM from Classic ASP Pin
nhss25-Feb-08 23:19
nhss25-Feb-08 23:19 
GeneralRe: Yahoo IM from Classic ASP Pin
Christian Graus25-Feb-08 23:27
protectorChristian Graus25-Feb-08 23:27 
GeneralDelete directory Pin
frndjust25-Feb-08 23:17
frndjust25-Feb-08 23:17 
GeneralRe: Delete directory Pin
Christian Graus25-Feb-08 23:28
protectorChristian Graus25-Feb-08 23:28 
GeneralSet Resolution of uploaded image Pin
frndjust25-Feb-08 23:15
frndjust25-Feb-08 23:15 
GeneralRe: Set Resolution of uploaded image Pin
Christian Graus25-Feb-08 23:17
protectorChristian Graus25-Feb-08 23:17 
GeneralRe: Set Resolution of uploaded image Pin
frndjust25-Feb-08 23:22
frndjust25-Feb-08 23:22 
Hi
Thanks for your response. In the following code I get error
System.Runtime.InteropServices.ExternalException: A
generic error occurred in GDI+.. Please help me.


string NewFile = System.IO.Path.GetFileName(userPostedFile.FileName);
string imagepath = filepath + System.IO.Path.GetFileName(userPostedFile.FileName);
System.Drawing.Image imgSource = System.Drawing.Image.FromFile(imagepath , true);
Bitmap bmp = new Bitmap(imgSource);
bmp.SetResolution(72, 72);
bmp.Save(NewFile);
FileStream fs = File.Open(NewFile, FileMode.Open);
System.Drawing.Bitmap newimg = new System.Drawing.Bitmap(fs);
MemoryStream ms = new MemoryStream();
newimg.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
newimg.Dispose();
byte[] imgdata = new byte[ms.Length];
ms.Read(imgdata, 0, NewFile.Length);
imgdata= ms.ToArray();

Thanks
GeneralRe: Set Resolution of uploaded image Pin
Christian Graus25-Feb-08 23:30
protectorChristian Graus25-Feb-08 23:30 
Generalpage locking Pin
eyeseetee25-Feb-08 22:53
eyeseetee25-Feb-08 22:53 
GeneralRe: page locking Pin
Christian Graus25-Feb-08 23:03
protectorChristian Graus25-Feb-08 23:03 
GeneralRe: page locking Pin
eyeseetee25-Feb-08 23:52
eyeseetee25-Feb-08 23:52 
GeneralRe: page locking Pin
Christian Graus26-Feb-08 0:04
protectorChristian Graus26-Feb-08 0:04 
GeneralRe: page locking Pin
eyeseetee26-Feb-08 0:28
eyeseetee26-Feb-08 0:28 
QuestionSession id in URL [modified] Pin
Krazy Programmer25-Feb-08 22:40
Krazy Programmer25-Feb-08 22:40 
GeneralRe: Session id in URL Pin
Christian Graus25-Feb-08 23:03
protectorChristian Graus25-Feb-08 23:03 
QuestionFriends...How to disable our browser back button? help me please Pin
G Nathan25-Feb-08 22:06
G Nathan25-Feb-08 22:06 
GeneralRe: Friends...How to disable our browser back button? help me please Pin
Christian Graus25-Feb-08 22:28
protectorChristian Graus25-Feb-08 22:28 
GeneralEvent Bubbling ... Pin
Dev Motiramani25-Feb-08 21:59
Dev Motiramani25-Feb-08 21:59 
GeneralRe: Event Bubbling ... Pin
Christian Graus25-Feb-08 22:02
protectorChristian Graus25-Feb-08 22:02 
QuestionQueryString Encryption Pin
AS@1325-Feb-08 21:15
AS@1325-Feb-08 21:15 
GeneralRe: QueryString Encryption Pin
N a v a n e e t h25-Feb-08 21:23
N a v a n e e t h25-Feb-08 21:23 
GeneralRe: QueryString Encryption Pin
Christian Graus25-Feb-08 21:30
protectorChristian Graus25-Feb-08 21:30 
QuestionAjax Control Pin
~V~25-Feb-08 20:43
~V~25-Feb-08 20:43 
GeneralRe: Ajax Control Pin
Sam Xavier7-Mar-08 1:10
Sam Xavier7-Mar-08 1:10 

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.