R
Remis
I have pictures on DB. (use 1.1 framework)
When use
Response.ContentType = "Image/Gif'
Response.OutputStream.Write(DR("Pic_Data"), 0, DR("Pic_Size"))
I see that image.
I want get width this picture or part of this picture.
I found example :
Dim stmFile As New MemoryStream
Dim pic As System.Drawing.Image
....
stmFile.Write(DR("Pic_Data"), 0, DR("Pic_Size"))
pic = System.Drawing.Image.FromStream(stmFile)
Response.ContentType = "Image/Gif"
pic.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif)
I got error on line : pic = System.Drawing.Image.FromStream(stmFile)
"invalid parameter used".
Where is my error?
When use
Response.ContentType = "Image/Gif'
Response.OutputStream.Write(DR("Pic_Data"), 0, DR("Pic_Size"))
I see that image.
I want get width this picture or part of this picture.
I found example :
Dim stmFile As New MemoryStream
Dim pic As System.Drawing.Image
....
stmFile.Write(DR("Pic_Data"), 0, DR("Pic_Size"))
pic = System.Drawing.Image.FromStream(stmFile)
Response.ContentType = "Image/Gif"
pic.Save(Response.OutputStream, System.Drawing.Imaging.ImageFormat.Gif)
I got error on line : pic = System.Drawing.Image.FromStream(stmFile)
"invalid parameter used".
Where is my error?