I figured it out, not the dimension of the files... but the type of image file.
When I used the .png no error detected... but if I used .jpeg/.jpg it makes me trouble... Need help to solve these. Regards, Eila On Monday, July 15, 2013 6:49:00 PM UTC+3, Mariano Reingart wrote: > > You shoud have the picture in a file, so PyFPDF can load it. > > Take a look at build_badge_dict in web2conf: > > https://code.google.com/p/web2conf/source/browse/controllers/badge.py#103 > > It uses some icons (speaker, country flag) from the private directory, > and uses the sponsor logo from a upload field in the database. > > Basically, you should pass the full image path to PyFPDF (sponsor.logo > is the upload field): > > fn = db.sponsor[user.sponsor_id].logo > source = os.path.join(request.folder, 'uploads', fn) > > See the sample function, that uses that info to generate the pdf. > > Best regads > > Mariano Reingart > http://www.sistemasagiles.com.ar > http://reingart.blogspot.com > > > On Mon, Jul 15, 2013 at 2:03 AM, Tribo Eila > <tribo....@gmail.com<javascript:>> > wrote: > > Hi, > > > > Supposed the code below: > > > > db.define_table('person', > > Field('name'), > > Field('picture', 'upload')). > > > > I'm trying to figured out, how to implement the picture to retrieve from > > database(postgreSQL) to FPDF. > > > > Any ideas to share? > > > > Thanks. > > > > Newbie > > > > > > > > > > -- > > > > --- > > You received this message because you are subscribed to the Google > Groups > > "web2py-users" group. > > To unsubscribe from this group and stop receiving emails from it, send > an > > email to web2py+un...@googlegroups.com <javascript:>. > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.