Click here to Skip to main content
15,916,683 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: Strange HTML nested table problem Pin
Paeth.Claudius-Raphael5-Oct-06 0:43
Paeth.Claudius-Raphael5-Oct-06 0:43 
GeneralRe: Strange HTML nested table problem Pin
Hemant Mane5-Oct-06 0:54
Hemant Mane5-Oct-06 0:54 
QuestionEvent: when the txt value changed Pin
militiaware4-Oct-06 22:27
militiaware4-Oct-06 22:27 
AnswerRe: Event: when the txt value changed Pin
led mike5-Oct-06 4:57
led mike5-Oct-06 4:57 
QuestionForm validation - form.length Pin
braveheartkenya4-Oct-06 16:52
braveheartkenya4-Oct-06 16:52 
QuestionAuthentication & authorization issue for IIS Pin
Elena_2006oct4-Oct-06 2:33
Elena_2006oct4-Oct-06 2:33 
AnswerRe: Authentication & authorization issue for IIS Pin
aamironline4-Oct-06 5:54
aamironline4-Oct-06 5:54 
QuestionHow to read and write image from MS Access database? (OLE Object) [modified] Pin
Richard Htin3-Oct-06 20:55
Richard Htin3-Oct-06 20:55 
Hi all friend,

I want to retrieve data as image from access database. I stored some image into access database. This field's datatype is OLE Object. When i want to read, convert stream, and write bitmap, i get some error.

1)OleDbDal.Images objImages = new OleDbDal.Images();
2)DataTable dt = objImages.GetImage(Convert.ToInt32(iId));
3)byte[] buffer = (byte[])dt.Rows[0]["Image"];
4)System.IO.MemoryStream objMemStream = System.IO.MemoryStream(buffer, true);
5)objMemStream.Write(buffer, 0, buffer.Length);
6)Bitmap objBitmap = (Bitmap)Bitmap.FromStream(objMemStream, true);
7)objBitmap.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Gif);

Line 1 to 5 is OK. Line 6 has error found. Error message is "Invalid parameter". If you have solution, could you help me.


Thanks.






-- modified at 4:28 Wednesday 4th October, 2006


-- modified at 5:14 Wednesday 4th October, 2006

hklinn

AnswerRe: How to read and write image from MS Access database? (OLE Object) Pin
Sam Heller5-Oct-06 2:50
Sam Heller5-Oct-06 2:50 
GeneralRe: How to read and write image from MS Access database? (OLE Object) Pin
Dennis Jeffrey7-Oct-06 5:06
Dennis Jeffrey7-Oct-06 5:06 
GeneralRe: How to read and write image from MS Access database? (OLE Object) Pin
Sam Heller7-Oct-06 5:55
Sam Heller7-Oct-06 5:55 
GeneralRe: How to read and write image from MS Access database? (OLE Object) Pin
Dennis Jeffrey7-Oct-06 6:04
Dennis Jeffrey7-Oct-06 6:04 
QuestionCustomize button action in IE Pin
mfranco_neto3-Oct-06 8:51
mfranco_neto3-Oct-06 8:51 
AnswerRe: Customize button action in IE Pin
Bradml3-Oct-06 17:37
Bradml3-Oct-06 17:37 
QuestionJavaScript code coverage Pin
Paul Watson3-Oct-06 4:09
sitebuilderPaul Watson3-Oct-06 4:09 
AnswerRe: JavaScript code coverage Pin
Paeth.Claudius-Raphael5-Oct-06 0:07
Paeth.Claudius-Raphael5-Oct-06 0:07 
GeneralRe: JavaScript code coverage Pin
Paul Watson5-Oct-06 3:04
sitebuilderPaul Watson5-Oct-06 3:04 
GeneralRe: JavaScript code coverage Pin
Paeth.Claudius-Raphael5-Oct-06 14:37
Paeth.Claudius-Raphael5-Oct-06 14:37 
GeneralRe: JavaScript code coverage Pin
Paul Watson5-Oct-06 22:27
sitebuilderPaul Watson5-Oct-06 22:27 
GeneralRe: JavaScript code coverage Pin
Paeth.Claudius-Raphael6-Oct-06 5:18
Paeth.Claudius-Raphael6-Oct-06 5:18 
GeneralRe: JavaScript code coverage Pin
Paul Watson6-Oct-06 5:59
sitebuilderPaul Watson6-Oct-06 5:59 
GeneralRe: JavaScript code coverage Pin
Paeth.Claudius-Raphael6-Oct-06 9:29
Paeth.Claudius-Raphael6-Oct-06 9:29 
AnswerRe: JavaScript code coverage Pin
User 17164925-Oct-06 5:01
professionalUser 17164925-Oct-06 5:01 
GeneralRe: JavaScript code coverage Pin
Paul Watson5-Oct-06 6:22
sitebuilderPaul Watson5-Oct-06 6:22 
Questionhow to make web application DDA compliant ? Pin
King Shez3-Oct-06 0:47
King Shez3-Oct-06 0:47 

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.