Hello.
I have this code:
if (archivoBinario != null)
{
MemoryStream ms = new MemoryStream(archivoBinario);
Bitmap imagen = new Bitmap(ms);
PicBoxImagen.Image = imagen;
}
It throws a System.OutOfMemoryException when a create a new Bitmap from MemoryStream ms.
Note: archivoBinario is a byte array witch its size is 9778 bytes.
I think the size on memory it's not the problem. Any advice?
The images are sent to the device by a WCF service and stored in a SQL Server CE 3.1 database. Maybe it can occur a problem while sending image.
I have compare the bytes representing the image stored in SQL Server 2005 and the image stored in SQL Server CE and are the same.
Thank you!