Click here to Skip to main content
14,879,246 members

NewToAspDotNet - Professional Profile



Summary

    Blog RSS
73
Authority
30
Debator
64
Enquirer
6
Organiser
220
Participant
0
Author
0
Editor
No Biography provided

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralError, retrieving image from sql server 2005 Pin
NewToAspDotNet10-Oct-07 5:50
MemberNewToAspDotNet10-Oct-07 5:50 
hi guys,

i want to save and retieve images into sql server 2005. i have a table caled resourcephotos with the columns:

res_id(int) and res_photo(image).

i don't have problems with saving the imagen into the database...when a new image is saved, then u see in the res_photo column <binary data="">

bud when i want to select the image and set it to the picturebox i get the error: parameter is not valid
here some code of my app to retrieve image and set it into the picturebox:

SqlCommand cmd27 = new SqlCommand("SELECT Res_photo FROM ResourcePhotos WHERE Res_id = '" + res_id + "'", myconn);


byte[] b = (byte[])cmd27.ExecuteScalar();

MemoryStream myms = new MemoryStream(b);

Image img = _res.pictureBox1.Image;

img = Image.FromStream(myms); <----------------------HERE has the error to do

_res.pictureBox1.Image = img;



i also tried Bitmap instead of Image, bud i got the same error.

does anyone any idea? thanx.

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.