Click here to Skip to main content
15,888,098 members
Home / Discussions / C#
   

C#

 
GeneralRe: Weird Debugging Problem Pin
ProtoBytes29-Dec-09 8:43
ProtoBytes29-Dec-09 8:43 
Questionhow to move multipoint button at run time Pin
krunal2528-Dec-09 23:22
krunal2528-Dec-09 23:22 
AnswerRe: how to move multipoint button at run time Pin
Luc Pattyn29-Dec-09 1:11
sitebuilderLuc Pattyn29-Dec-09 1:11 
QuestionError: A Generic Error occured in GDI+ Pin
Udayaraju28-Dec-09 23:00
Udayaraju28-Dec-09 23:00 
AnswerRe: Error: A Generic Error occured in GDI+ Pin
Luc Pattyn29-Dec-09 1:15
sitebuilderLuc Pattyn29-Dec-09 1:15 
GeneralRe: Error: A Generic Error occured in GDI+ Pin
Ben Fair29-Dec-09 3:28
Ben Fair29-Dec-09 3:28 
AnswerRe: Error: A Generic Error occured in GDI+ Pin
Hristo-Bojilov29-Dec-09 1:24
Hristo-Bojilov29-Dec-09 1:24 
AnswerRe: Error: A Generic Error occured in GDI+ Pin
Ben Fair29-Dec-09 3:23
Ben Fair29-Dec-09 3:23 
Along the lines of the other recommendations, taking the image data and constructing a Bitmap of it seems to be extraneous. If you have the image data already, then there is no benefit in using that data to construct a Bitmap other than being able to invoke Bitmap.Save(). All you really need to do is write the data directly to disk:

using (FileStream fs = new FileStream(Server.MapPath(@"~\UserPhoto.bmp"), FileMode.CreateNew))
{
    fs.Write(Data, 0, Data.Length);
}


This also has the benefit of removing GDI from the equation. So, if you still get an exception you will atleast be able to catch it as some sort of IO Exception and get more meaningful information about the problem.

Hold on a second here... Don't you think you might be putting the horse ahead of the cart?

Questionsetinputtodefaultaudiodevice() not working in xp Pin
krinaljariwala28-Dec-09 22:54
krinaljariwala28-Dec-09 22:54 
AnswerRe: setinputtodefaultaudiodevice() not working in xp Pin
#realJSOP28-Dec-09 23:58
mve#realJSOP28-Dec-09 23:58 
GeneralRe: setinputtodefaultaudiodevice() not working in xp Pin
krinaljariwala29-Dec-09 0:03
krinaljariwala29-Dec-09 0:03 
GeneralRe: setinputtodefaultaudiodevice() not working in xp Pin
#realJSOP29-Dec-09 0:14
mve#realJSOP29-Dec-09 0:14 
GeneralRe: setinputtodefaultaudiodevice() not working in xp Pin
krinaljariwala29-Dec-09 0:17
krinaljariwala29-Dec-09 0:17 
AnswerRe: setinputtodefaultaudiodevice() not working in xp Pin
#realJSOP29-Dec-09 0:21
mve#realJSOP29-Dec-09 0:21 
GeneralRe: setinputtodefaultaudiodevice() not working in xp Pin
krinaljariwala29-Dec-09 0:37
krinaljariwala29-Dec-09 0:37 
AnswerRe: setinputtodefaultaudiodevice() not working in xp [modified] Pin
#realJSOP29-Dec-09 0:35
mve#realJSOP29-Dec-09 0:35 
QuestionSyncing data between SQL Server 2005 and Velocity (Distributed cache application) Pin
Gans_iitm28-Dec-09 21:03
Gans_iitm28-Dec-09 21:03 
QuestionFTP provider for windows 2008 ftp server Pin
Member 401661628-Dec-09 20:45
Member 401661628-Dec-09 20:45 
QuestionWebDAV Pin
satsumatable28-Dec-09 20:38
satsumatable28-Dec-09 20:38 
AnswerRe: WebDAV Pin
#realJSOP28-Dec-09 23:58
mve#realJSOP28-Dec-09 23:58 
QuestionWith regard to "csexwb" lost in the new tab window document.referrer Pin
590240@qq.com28-Dec-09 20:18
590240@qq.com28-Dec-09 20:18 
AnswerRe: With regard to "csexwb" lost in the new tab window document.referrer Pin
Abhinav S28-Dec-09 20:41
Abhinav S28-Dec-09 20:41 
QuestionTimeout for an operation Pin
faheemnadeem28-Dec-09 19:27
faheemnadeem28-Dec-09 19:27 
AnswerRe: Timeout for an operation Pin
Ben Fair29-Dec-09 3:02
Ben Fair29-Dec-09 3:02 
QuestionInterface Colllection Pin
Isaac Gordon28-Dec-09 19:15
Isaac Gordon28-Dec-09 19:15 

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.