G
Guest
I have a stored procedure that returns the binary representation of an image
from a SQL Server db. The following code returns an "Invalid parameter"
error on the System.Drawing... line. I am converting this code from Access.
Any ideas? Thanks!
byte[] imageData = (byte[])(command.ExecuteScalar());
MemoryStream ms = new MemoryStream(imageData);
System.Drawing.Image fullsizeImage = System.Drawing.Image.FromStream(ms);
from a SQL Server db. The following code returns an "Invalid parameter"
error on the System.Drawing... line. I am converting this code from Access.
Any ideas? Thanks!
byte[] imageData = (byte[])(command.ExecuteScalar());
MemoryStream ms = new MemoryStream(imageData);
System.Drawing.Image fullsizeImage = System.Drawing.Image.FromStream(ms);