Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. How to use CByteArray to store and retrieve pictures

How to use CByteArray to store and retrieve pictures

Scheduled Pinned Locked Moved C / C++ / MFC
helpc++databasepostgresqltutorial
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    snprani
    wrote on last edited by
    #1

    Hi to All I am using PostgreSQL as my database. I am having one table called citizenphoto which contains cno and citizen photo as its fields. i have to insert images of citizens into that table through vc++. For this i have derived that table to CRecordset object. and it is giving datatype for photo is CByteArray. when i am going to store image data of size more than 10K it is giving error as Data truncated. i have changed the size of that variable in DDX as 317000. But there is no use. Can anybody help me in this regard. This will be so much helpful for me to go further. Thanks in Advance.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups