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. Need some help - Storing Image and text data in access DB

Need some help - Storing Image and text data in access DB

Scheduled Pinned Locked Moved Visual Basic
databasecsharphelptutorial
4 Posts 3 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
    Jats_4ru
    wrote on last edited by
    #1

    My Project has a requirement of storing Image and Text data in Access Database. I am using Vb.net for coding. According to me, This requirement can be fullfilled using binary files. But i am not able to figure out how to do it. The requiremnt is to accept data in RichTextBox(Text and Images) and convert it to binary file and store it to DB(Access). and Vice Versa. Can any body help me regarding this... Any links berifing the matter or any article Plz i need help...

    Jats

    R 1 Reply Last reply
    0
    • J Jats_4ru

      My Project has a requirement of storing Image and Text data in Access Database. I am using Vb.net for coding. According to me, This requirement can be fullfilled using binary files. But i am not able to figure out how to do it. The requiremnt is to accept data in RichTextBox(Text and Images) and convert it to binary file and store it to DB(Access). and Vice Versa. Can any body help me regarding this... Any links berifing the matter or any article Plz i need help...

      Jats

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

      hey, I am C# developper, but i think my code might be useful since we are both using .NET framework. do the following. Check if file exist first by using the File class.if exists then do this byte[] Imagespace = File.ReadAllBytes(strPath); strpath is the full path of the photo. you can then send to stored procedure or do whatever you want once you have the photo in Imagespace variable. I wish my code would be useful.

      I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

      T J 2 Replies Last reply
      0
      • R rabih_kai

        hey, I am C# developper, but i think my code might be useful since we are both using .NET framework. do the following. Check if file exist first by using the File class.if exists then do this byte[] Imagespace = File.ReadAllBytes(strPath); strpath is the full path of the photo. you can then send to stored procedure or do whatever you want once you have the photo in Imagespace variable. I wish my code would be useful.

        I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

        T Offline
        T Offline
        tanya foster
        wrote on last edited by
        #3

        Thanks rabih_kai for sharing this information.

        1 Reply Last reply
        0
        • R rabih_kai

          hey, I am C# developper, but i think my code might be useful since we are both using .NET framework. do the following. Check if file exist first by using the File class.if exists then do this byte[] Imagespace = File.ReadAllBytes(strPath); strpath is the full path of the photo. you can then send to stored procedure or do whatever you want once you have the photo in Imagespace variable. I wish my code would be useful.

          I've been programming since year 1999, graduated from Univeristy Paris 2 France, fluent in C,C++,VC++,Web programming (XML,HTML,php etc..),.NET frameworks,C# and ASP.NET,SQL server, Mastering VC++ .NET and SQL server,data structure and database design

          J Offline
          J Offline
          Jats_4ru
          wrote on last edited by
          #4

          Hi thankx for the help rabih. Any how i have fullfilled the reqirement in a different and simple way. As the data is inserted in RichTextBox i accessed the data in RTF format from RTBox and stored in database. And while retrieving i can assign the data to RTBox.Rtf. It will convert the Text and Images and will display them. Simple isnt it...

          Jats

          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