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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to use CLongBinary to store image of size > 64 KB with Interbase Database 6.0 driver

How to use CLongBinary to store image of size > 64 KB with Interbase Database 6.0 driver

Scheduled Pinned Locked Moved Database
helpdatabasetutorialquestion
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.
  • N Offline
    N Offline
    navneet professional
    wrote on last edited by
    #1

    Hi, I stored/retrieved images upto size 64 KB (65535 byte) using CByteArray.But it is not able to save whole image of size 2 MB, partially it saves upto 64 KB of total size 2 MB. How to use CLongBinary to store image of size > 64 KB (upto 2 MB) with Interbase Database 6.0 driver? Please provide me example specific to this database driver. Database table structure is: Create table "TEST" ( "Name" varchar(10), "BlobData" BLOB ); I tried to check BLOB limit of database table as well.I run following queries on database: Case 1: Create table "TEST" ( "Name" varchar(10), "BlobData" BLOB(65535) ); Result: Successfully created. Case 2: Create table "TEST" ( "Name" varchar(10), "BlobData" BLOB(65536) ); Result: Dynamic SQL Error Error code -842 shown as: unsigned short integer expected. So please help me to resove this problem. Thanks & Regards Navneet

    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