Click here to Skip to main content
15,914,066 members
Home / Discussions / C#
   

C#

 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 15:35
professional Xmen Real 23-Mar-09 15:35 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Jacob Dixon23-Mar-09 15:40
Jacob Dixon23-Mar-09 15:40 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 15:44
professional Xmen Real 23-Mar-09 15:44 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Jacob Dixon23-Mar-09 15:50
Jacob Dixon23-Mar-09 15:50 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 16:27
professional Xmen Real 23-Mar-09 16:27 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Jacob Dixon23-Mar-09 16:56
Jacob Dixon23-Mar-09 16:56 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 16:59
professional Xmen Real 23-Mar-09 16:59 
AnswerRe: Saving picture to SQL (PictureBox) GDI Error Pin
Luc Pattyn23-Mar-09 16:03
sitebuilderLuc Pattyn23-Mar-09 16:03 
Hi,

GDI+ has the tendency to name every problem happening in Image.Save() a "generic problem occured in GDI+". It could be a full disk, a locked file, whatever. In your case the MemoryStream can hardly fail (unless you are near an out-of-memory situation), but your image itself could be invalid (not sure how you would get PictureBox accept an invalid image, unless you first assign it to PictureBox.Image, and then do something to it.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

- before you ask a question here, search CodeProject, then Google
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get
- use the code block button (PRE tags) to preserve formatting when showing multi-line code snippets


GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Jacob Dixon23-Mar-09 16:14
Jacob Dixon23-Mar-09 16:14 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Luc Pattyn23-Mar-09 16:30
sitebuilderLuc Pattyn23-Mar-09 16:30 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Jacob Dixon23-Mar-09 16:42
Jacob Dixon23-Mar-09 16:42 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Luc Pattyn23-Mar-09 17:36
sitebuilderLuc Pattyn23-Mar-09 17:36 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 17:03
professional Xmen Real 23-Mar-09 17:03 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Luc Pattyn23-Mar-09 17:35
sitebuilderLuc Pattyn23-Mar-09 17:35 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 17:44
professional Xmen Real 23-Mar-09 17:44 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Jacob Dixon23-Mar-09 17:51
Jacob Dixon23-Mar-09 17:51 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Luc Pattyn23-Mar-09 17:55
sitebuilderLuc Pattyn23-Mar-09 17:55 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 18:03
professional Xmen Real 23-Mar-09 18:03 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Jacob Dixon23-Mar-09 18:10
Jacob Dixon23-Mar-09 18:10 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 18:15
professional Xmen Real 23-Mar-09 18:15 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Luc Pattyn23-Mar-09 18:17
sitebuilderLuc Pattyn23-Mar-09 18:17 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Jacob Dixon23-Mar-09 18:26
Jacob Dixon23-Mar-09 18:26 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Luc Pattyn23-Mar-09 18:02
sitebuilderLuc Pattyn23-Mar-09 18:02 
GeneralRe: Saving picture to SQL (PictureBox) GDI Error Pin
Xmen Real 23-Mar-09 18:11
professional Xmen Real 23-Mar-09 18:11 
Questionhow to insert data grid view to table in MySQL database? Pin
rizchi23-Mar-09 12:23
rizchi23-Mar-09 12:23 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.