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
Faisal Ansari
NA
451
832k
Exception : Parameter is not valid ....
Oct 6 2012 4:00 AM
i am writing code for byteArray convert into image or bitmap
code is below
ArrayList pics = tw.TransferPictures();
EndingScan();
tw.CloseSrc();
picnumber++;
for (int i = 0; i < pics.Count; i++)
{
IntPtr img = (IntPtr)pics[i];
PicForm newpic = new PicForm(img);
int a = img.ToInt32();
byte[] byteArray = new byte[a];
MemoryStream ms = new MemoryStream(byteArray);
Bitmap returnImage = new Bitmap(ms);
returnImage.Save("D:\\UploadArchive\\" + i + ".jpg");
newpic.MdiParent = this;
int picnum = i + 1;
newpic.Text = "ScanPass" + picnumber.ToString() + "_Pic" + picnum.ToString();
newpic.Show();
}
when compiler excute this line
Bitmap returnImage = new Bitmap(ms);
exception occures " Parameter is not valid "
reply soon
Thanks
Reply
Answers (
1
)
How can Create Scanner Application using c# winform ??
when i clik the dropdown list the data to be displayed in details view