Results 1 to 2 of 2

Thread: image database display problem

  1. #1
    Join Date
    Nov 2011
    Posts
    4

    image database display problem

    Good day everyone, i need to display image from the database but the code returns error page when i tried to print image from the database using

    Code:
       
          print fout
    below is the entire codes

    Code:
       
          #! /data/python
       
          import MySQLdb
       
          import sys
       
           
       
           [
       
          print ("Content-type: image/jpeg");
       
          print # End of headers!
       
           
       
          try:
      
          cx = (*********)
     
           
      
          cursor = cx.cursor()
     
           
      
          cursor.execute("SELECT photo FROM picture LIMIT 1")
      
           
      
          fout=cursor.fetchone()[0]
     
          print fout
     
           
      
          #fout.close()
      
           
      
          #cursor.close()
      
          cx.close()
      
           
      
       except IOError, e:
      
          print "Error %d: %s" % (e.args[0],e.args[1])
     
          sys.exit(1)
    ANY HELP

  2. #2
    Join Date
    May 2011
    Posts
    220

    Re: image database display problem

    hey.....what is the error that you are getting exactly?

Similar Threads

  1. Nokia X2 problem with caller display image
    By Janze in forum Portable Devices
    Replies: 3
    Last Post: 30-10-2010, 06:09 PM
  2. Web image display problem
    By Dharmavira in forum Technology & Internet
    Replies: 5
    Last Post: 20-03-2009, 03:45 PM
  3. Adding Image in SQL database through vb.net application?
    By Sanket07 in forum Software Development
    Replies: 4
    Last Post: 16-02-2009, 06:41 PM
  4. Insert image in access database from vb 6.0
    By Vireshh in forum Software Development
    Replies: 2
    Last Post: 22-01-2009, 09:06 PM
  5. Wall Paper Display Properties Image Problem In Windows XP
    By MACAWI in forum Customize Desktop
    Replies: 1
    Last Post: 22-11-2008, 04:42 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,175,432.17348 seconds with 17 queries