TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Ramana
NA
25
59.3k
Out of Memory exception while converting byte array into string
May 9 2011 3:21 AM
Hi,
I'm getting out of memory exception while converting byte array into a string. Initially I've stored content of a file(338 MB) into DataBase in varbinay format , after reading the content from DataBase I'm conveting that Byte array into string wher I'm getting the error .
var val = cmd.ExecuteScalar();//Getting form DataBase
System.Text.Encoding enc = System.Text.Encoding.ASCII;
string myString = enc.GetString((byte[])val);//Converting into String
Please someone tell me a solution.
Thanks & Regards,
Ramana
Reply
Answers (
2
)
How to Generate reports using ComponentOne?
How to delete a file from folder in C#