Click here to Skip to main content
15,900,431 members
Home / Discussions / C#
   

C#

 
QuestionHow to export 3D Max object to Open GL C# ??!! Pin
suroor45315-Apr-06 17:50
suroor45315-Apr-06 17:50 
AnswerRe: How to export 3D Max object to Open GL C# ??!! Pin
Judah Gabriel Himango16-Apr-06 6:13
sponsorJudah Gabriel Himango16-Apr-06 6:13 
GeneralRe: How to export 3D Max object to Open GL C# ??!! Pin
can-inlife11-Apr-10 7:56
can-inlife11-Apr-10 7:56 
Questionquestion about no titlebar and resizable form Pin
abstar15-Apr-06 13:11
abstar15-Apr-06 13:11 
AnswerRe: question about no titlebar and resizable form Pin
jhaga15-Apr-06 13:39
professionaljhaga15-Apr-06 13:39 
Questionimage uploading Pin
TAREQ F ABUZUHRI15-Apr-06 9:43
TAREQ F ABUZUHRI15-Apr-06 9:43 
AnswerRe: image uploading Pin
Judah Gabriel Himango15-Apr-06 16:33
sponsorJudah Gabriel Himango15-Apr-06 16:33 
AnswerRe: image uploading Pin
babamara16-Apr-06 2:11
babamara16-Apr-06 2:11 
try something like this
Stream imgStream = UploadFile.PostedFile.InputStream;
int imgLen = UploadFile.PostedFile.ContentLength;
string imgContentType = UploadFile.PostedFile.ContentType;
string imgName = txtImgName.Value;
byte[] imgBinaryData = new byte[imgLen];
int n = imgStream.Read(imgBinaryData,0,imgLen);
//thumb
MemoryStream stream = new MemoryStream();
System.Drawing.Image thumb = System.Drawing.Image.FromStream(imgStream);
System.Drawing.Image thumbnail = thumb.GetThumbnailImage(50, 50, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);
thumbnail.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] thumbBinaryData = new byte[stream.Length];
stream.Position = 0;
int m = stream.Read(thumbBinaryData, 0, (int)stream.Length);
//
SaveToDB(imgName, imgBinaryData, imgContentType, thumbBinaryData);

Good luck Smile | :)

-- modified at 8:12 Sunday 16th April, 2006
QuestionDll Function Import Pin
User 226147415-Apr-06 7:48
User 226147415-Apr-06 7:48 
AnswerRe: Dll Function Import Pin
Judah Gabriel Himango15-Apr-06 16:37
sponsorJudah Gabriel Himango15-Apr-06 16:37 
Questionprograming Internet Explorer Pin
ranzask15-Apr-06 6:55
ranzask15-Apr-06 6:55 
AnswerRe: programing Internet Explorer Pin
kasik15-Apr-06 7:56
kasik15-Apr-06 7:56 
GeneralRe: programing Internet Explorer Pin
ranzask17-Apr-06 23:40
ranzask17-Apr-06 23:40 
GeneralRe: programing Internet Explorer Pin
kasik18-Apr-06 2:04
kasik18-Apr-06 2:04 
GeneralRe: programing Internet Explorer Pin
ranzask18-Apr-06 3:35
ranzask18-Apr-06 3:35 
GeneralRe: programing Internet Explorer Pin
kasik18-Apr-06 3:41
kasik18-Apr-06 3:41 
QuestionFiltering problem Pin
Bobby88715-Apr-06 1:35
Bobby88715-Apr-06 1:35 
QuestionPlz help (String to DateTime) Pin
rahultaing15-Apr-06 1:01
rahultaing15-Apr-06 1:01 
AnswerRe: Plz help (String to DateTime) Pin
rahultaing15-Apr-06 1:19
rahultaing15-Apr-06 1:19 
AnswerRe: Plz help (String to DateTime) Pin
alexey N16-Apr-06 17:42
alexey N16-Apr-06 17:42 
Questionmakefile for C# Pin
progmatic icon15-Apr-06 0:06
progmatic icon15-Apr-06 0:06 
AnswerRe: makefile for C# Pin
Judah Gabriel Himango15-Apr-06 16:40
sponsorJudah Gabriel Himango15-Apr-06 16:40 
AnswerRe: makefile for C# Pin
Graham Nimbley16-Apr-06 14:42
Graham Nimbley16-Apr-06 14:42 
Questionkeyboard hook Pin
g00fyman14-Apr-06 22:23
g00fyman14-Apr-06 22:23 
AnswerRe: keyboard hook Pin
HakunaMatada14-Apr-06 23:09
HakunaMatada14-Apr-06 23:09 

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.