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. Database & SysAdmin
  3. Database
  4. DAO 12.0 Big Images in Access

DAO 12.0 Big Images in Access

Scheduled Pinned Locked Moved Database
databasehelpcsharpwpfcom
3 Posts 2 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.
  • J Offline
    J Offline
    Juan Pablo G C
    wrote on last edited by
    #1

    I'm preparing an WPF article that creates storages automatically from classes with nesting and else. The issue is that in the ACCESS db execute , everything works fine but images bigger than 12 KB I get the error: 'System resource exceeded.' I show the process:

    public Database db;
    public DBEngine engine;
    this.db = this.engine.OpenDatabase(file, Missing.Value, Missing.Value, Missing.Value);
    access.db.Execute(String.Concat(query, values), Missing.Value);

    in values, the data is directly:

    0x89504E47...454E44AE426082

    It works with small images, and if I add with the Access directly design it works, so the field type is right, Maybe is an issue with connection size properties. Does any store a big image with DAO12,ADO, or OLEDB with an Insert statement? Thanks in advance, a great article is coming...

    Juan Pablo G.C. Overrider Blog

    R 1 Reply Last reply
    0
    • J Juan Pablo G C

      I'm preparing an WPF article that creates storages automatically from classes with nesting and else. The issue is that in the ACCESS db execute , everything works fine but images bigger than 12 KB I get the error: 'System resource exceeded.' I show the process:

      public Database db;
      public DBEngine engine;
      this.db = this.engine.OpenDatabase(file, Missing.Value, Missing.Value, Missing.Value);
      access.db.Execute(String.Concat(query, values), Missing.Value);

      in values, the data is directly:

      0x89504E47...454E44AE426082

      It works with small images, and if I add with the Access directly design it works, so the field type is right, Maybe is an issue with connection size properties. Does any store a big image with DAO12,ADO, or OLEDB with an Insert statement? Thanks in advance, a great article is coming...

      Juan Pablo G.C. Overrider Blog

      R Offline
      R Offline
      RCoate
      wrote on last edited by
      #2

      Whenever I have needed to use images with an Access database, I have always stored the images in the file system and then just a pointer to the image in the database (an url, path or whatever is appropriate for the app). Access does not play well with images when trying to store them in the database.

      J 1 Reply Last reply
      0
      • R RCoate

        Whenever I have needed to use images with an Access database, I have always stored the images in the file system and then just a pointer to the image in the database (an url, path or whatever is appropriate for the app). Access does not play well with images when trying to store them in the database.

        J Offline
        J Offline
        Juan Pablo G C
        wrote on last edited by
        #3

        Of course, you can always do that, but is a test, in access I can do, and I would like to know how to do in code.

        Juan Pablo G.C. Overrider Blog

        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