Guest_imported
New member
- Jan 1, 1970
- 0
Can somebody tell me how to upload images to database ; the way i try to do it is :
ImageInfo img = new ImageInfo picture.PostedFile.InputStream);
Stream imgStream = picture.PostedFile.InputStream;
int imgLen = picture.PostedFile.ContentLength;
byte[] imgBinaryData = new byte
;
int i = imgStream.Read(imgBinaryData,0,imgLen);
then i use an sql query to insert the image data into the table;
what's wrong here
Please does anybody know?
ImageInfo img = new ImageInfo picture.PostedFile.InputStream);
Stream imgStream = picture.PostedFile.InputStream;
int imgLen = picture.PostedFile.ContentLength;
byte[] imgBinaryData = new byte
int i = imgStream.Read(imgBinaryData,0,imgLen);
then i use an sql query to insert the image data into the table;
what's wrong here
Please does anybody know?