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. Visual Basic
  4. Embedding Images in SQL Database

Embedding Images in SQL Database

Scheduled Pinned Locked Moved Visual Basic
databasehelptutorial
2 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.
  • K Offline
    K Offline
    king gamo
    wrote on last edited by
    #1

    Hi I need help on how to embed or save an image and not the path of the image in a SQL2000 at 600dpi and retrieve it at the same 600dpi to display.

    I 1 Reply Last reply
    0
    • K king gamo

      Hi I need help on how to embed or save an image and not the path of the image in a SQL2000 at 600dpi and retrieve it at the same 600dpi to display.

      I Offline
      I Offline
      isroavi
      wrote on last edited by
      #2

      Dim Adapter As New OleDb.OleDbDataAdapter(lSql, ConnectionString) Dim CommandBuilder As New OleDb.OleDbCommandBuilder(Adapter) Dim memstImg As New MemoryStream picturebox.Image.Save(memstImg, picturebox.Image.RawFormat) Adapter.Fill(dataset, "image_bank") Datarow = dsImg.Tables("image_bank").NewRow() Datarow.Item("image_file") = memstImg.GetBuffer() dataset.Tables("image_bank").Rows.Add(lRow) Adapter.Update(dataset, "image_bank") raj

      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