General discussion

Locked

How to Save image in SQL Database

By jibrel2005 ·
hi
Can you advise about How to Save image in SQL Database by Using VB.net User interface
Pls
Thank you

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Try the Questions forum...

by boxfiddler Moderator In reply to How to Save image in SQL ...

you are more likely to receive an answer there. Do this by clicking "Ask a Question". Don't forget to mark the replies as 'Helpful' if they solve your problem.
This is the Discussions Forums where folks mostly just shoot the breeze.

Collapse -

Strange I found that on google easily for C#

by Tony Hopkinson In reply to How to Save image in SQL ...

Given you know how to create a parameterised query.

For the Image column parameter
Create it's parameter with a type of SQLDBType.Image.
The parameter value is expected as an array of byte, so
If you save your picture or whatever into a stream.
Then it's just ImageParam.Value =ImageStream.GetBuffer();

Don't forget to tidy up the stream !

Back to Web Development Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums