Click here to Skip to main content
15,922,015 members
Home / Discussions / C#
   

C#

 
GeneralRe: Weird ViewState Pin
Christian Graus26-Nov-05 21:47
protectorChristian Graus26-Nov-05 21:47 
QuestionDependent Assemblies Question Pin
Ritcho24-Nov-05 14:19
Ritcho24-Nov-05 14:19 
QuestionProblems pulling an image out of SQL Pin
Judy10110124-Nov-05 13:39
Judy10110124-Nov-05 13:39 
AnswerRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 13:41
protectorChristian Graus24-Nov-05 13:41 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:00
Judy10110124-Nov-05 14:00 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 14:05
protectorChristian Graus24-Nov-05 14:05 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:10
Judy10110124-Nov-05 14:10 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 14:20
protectorChristian Graus24-Nov-05 14:20 
OK
A winforms app is an app in .NET that makes a windows application instead of a web one. If that's hard for you right now, then perhaps it's an unnecessary diversion. You could perhaps try something like this:

System.IO.MemoryStream ms = new System.IO.MemoryStream(picture.Data);
System.Drawing.Bitmap bmp = System.Drawing.Bitmap.FromStream(ms) as Bitmap;
bmp.Save(@"c:\test.jpg");

which, assuming your data is meant to be a jpg, should save it to disc. If it does, then your class is reading the image fine. picture.Data is meant to be whatever your class instance is, and it's property for the byte[].

At this point I still have no idea what your trouble is. You started by saying you get an error, and you've still not told me what it is.


Christian Graus - Microsoft MVP - C++
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:22
Judy10110124-Nov-05 14:22 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 14:24
protectorChristian Graus24-Nov-05 14:24 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:30
Judy10110124-Nov-05 14:30 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 17:05
protectorChristian Graus24-Nov-05 17:05 
GeneralRe: Problems pulling an image out of SQL Pin
Judy10110124-Nov-05 14:34
Judy10110124-Nov-05 14:34 
GeneralRe: Problems pulling an image out of SQL Pin
Christian Graus24-Nov-05 17:28
protectorChristian Graus24-Nov-05 17:28 
AnswerRe: Problems pulling an image out of SQL Pin
Guillermo Rivero25-Nov-05 3:50
Guillermo Rivero25-Nov-05 3:50 
AnswerRe: Problems pulling an image out of SQL Pin
Mark DeVol29-Nov-05 11:55
Mark DeVol29-Nov-05 11:55 
QuestionFileNotFoundException with remoting Pin
Sylvain Boissé24-Nov-05 13:05
Sylvain Boissé24-Nov-05 13:05 
QuestionUser and Group Security Pin
jez12345624-Nov-05 11:33
jez12345624-Nov-05 11:33 
QuestionnumericUpDown + button + paint handler Pin
...---...24-Nov-05 9:07
...---...24-Nov-05 9:07 
AnswerRe: numericUpDown + button + paint handler Pin
Christian Graus24-Nov-05 9:27
protectorChristian Graus24-Nov-05 9:27 
QuestionRegular Expressions in .NET (C#) Pin
conrado724-Nov-05 8:47
conrado724-Nov-05 8:47 
AnswerRe: Regular Expressions in .NET (C#) Pin
Kevin McFarlane24-Nov-05 10:54
Kevin McFarlane24-Nov-05 10:54 
QuestionDataGrid row value Pin
webhay24-Nov-05 8:35
webhay24-Nov-05 8:35 
AnswerRe: DataGrid row value Pin
Stanciu Vlad24-Nov-05 9:01
Stanciu Vlad24-Nov-05 9:01 
GeneralRe: DataGrid row value Pin
webhay24-Nov-05 9:24
webhay24-Nov-05 9:24 

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.