Results 1 to 3 of 3
  1. #1

    Default A generic error occurred in GDI+


    knsa nkasugat na ani mga error when updating image from the database?

    Code:
    If Not Me.PictureBox1.Image Is Nothing Then
                        Dim custPic as Byte() = Nothing
                        Dim ms As MemoryStream = New MemoryStream
                        Me.PictureBox1.Image.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg) ' Diri cya nga line mu.error
                        custPic = ms.GetBuffer
                        ms.Close()
                    End If
    mu.error ni inig update naq sa customer information nya di naq ilisan ang picture nya inig save..

    please help..

  2. #2

    Default Re: A generic error occurred in GDI+

    which part sa code ang nag access sa database dha glen? mura mag wala..

    "A generic error occurred in GDI+." will occur upon calling Image.Save()

    * You don't have permission to write to a directory.
    * The directory or folder does not exist.

    Sa imohang case is memory stream, so ang gusto nimo kwaon ang array of bytes sa image.. chati lang ko..
    Last edited by fixyourself; 07-08-2011 at 02:04 PM. Reason: ahh, kakuha nakos imo gusto ipa ibot..

  3. #3

    Default Re: A generic error occurred in GDI+

    lisod ni siya bai kai generic error sa GDI+

    i check suway kong gi onsa nimo pag assign ang .Image nga property... most likely wala pato ma close iyang handle...

  4.    Advertisement

Similar Threads

 
  1. installing Xp, system halt, error occur.
    By etgo in forum Computer Hardware
    Replies: 34
    Last Post: 10-12-2010, 06:58 AM
  2. Error occurs when installing XP
    By pamonn in forum Software & Games (Old)
    Replies: 6
    Last Post: 10-10-2008, 07:04 PM
  3. an error occurred while processing this directive
    By YJOB in forum Websites & Multimedia
    Replies: 0
    Last Post: 10-10-2008, 11:39 AM
  4. Replies: 17
    Last Post: 12-07-2007, 03:02 PM
  5. USB /thumbdrive error unrecognized in windows
    By benz_jie2005 in forum Computer Hardware
    Replies: 4
    Last Post: 03-23-2007, 07:43 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
about us
We are the first Cebu Online Media.

iSTORYA.NET is Cebu's Biggest, Southern Philippines' Most Active, and the Philippines' Strongest Online Community!
follow us
#top