I’m loading a RSA key from a stream and getting an “Stream Read” error? What’s the first thing I should try to get my code working?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Bit of a wild guess, but this can happen if the stream’s position is not reset to 0 when you try to read from the stream, after having written to it. Try setting
immediately before using the stream to encrypt.