Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 07, 2008 01:56 PM by yeotumitsu@sify.com
Member
460 Points
615 Posts
Dec 07, 2008 11:11 AM|LINK
Is there a way to convert it?
byte
...........
Contributor
4907 Points
836 Posts
Dec 07, 2008 12:23 PM|LINK
First convert bute[] to Object and then Convert Object to System.IO.Stream
Dec 07, 2008 12:36 PM|LINK
How?
Dec 07, 2008 01:56 PM|LINK
I have tried this on my system and working perfect -
object objByte = sigObj.GetBitmapBufferBytes(); byte[] bytData = (byte[])objByte; sigObj.BitMapBufferClose(); System.IO.MemoryStream ms = new System.IO.MemoryStream(bytData); System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(ms);
helixpoint
Member
460 Points
615 Posts
cannot convert from 'byte[]' to 'System.IO.Stream'
Dec 07, 2008 11:11 AM|LINK
Is there a way to convert it?
byte
[] imageBytes;imageBytes = (byte[])dsPhotosFiles.Tables[0].Rows[i]["fileBytes"];
saveImage(imageBytes, 400, Server.MapPath(@"\images\houses\" + fileName)); private void saveImage(byte[] imageBytes, int thumbWidth, string imagePath)
{
System.Drawing.Image image = System.Drawing.Image.FromStream(imageBytes);
...........
Helixpoint LLC
Mobile Marketing
yeotumitsu@s...
Contributor
4907 Points
836 Posts
Re: cannot convert from 'byte[]' to 'System.IO.Stream'
Dec 07, 2008 12:23 PM|LINK
First convert bute[] to Object and then Convert Object to System.IO.Stream
-Manas
=======================================
If this post is useful to you, please mark it as answer.
helixpoint
Member
460 Points
615 Posts
Re: cannot convert from 'byte[]' to 'System.IO.Stream'
Dec 07, 2008 12:36 PM|LINK
How?
Helixpoint LLC
Mobile Marketing
yeotumitsu@s...
Contributor
4907 Points
836 Posts
Re: cannot convert from 'byte[]' to 'System.IO.Stream'
Dec 07, 2008 01:56 PM|LINK
I have tried this on my system and working perfect -
object objByte = sigObj.GetBitmapBufferBytes();
byte[] bytData = (byte[])objByte;
sigObj.BitMapBufferClose();
System.IO.MemoryStream ms = new System.IO.MemoryStream(bytData);
System.Drawing.Bitmap bmp = new System.Drawing.Bitmap(ms);
-Manas
=======================================
If this post is useful to you, please mark it as answer.