×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Save File to Blob Field?

Save File to Blob Field?

Save File to Blob Field?

(OP)
I did this several years ago at another job and it is proving difficult to find the pieces to rewrite. I think it was hard to find then too but hoping someone can point me to the right place or has a working sample?

In any case I want to save a file in a database so I am thinking a file stream to BLOB. I want to say I used ADO somehow for the stream.

My backend will be SQL 2008. If someone knows an ideal SQL BLOB datatype, excellent otherwise I can probably find it related to another environment.

Then I used it for my version control for my front end. I essentially had to access files saved. One that updated the application and the application which would extract the update application and load it which in turn updated the Application and reloaded it. It worked like a charm.

Now I want to use it for storing 'standard' modules with versioning and possibly evolving into an object based version control system. - So yes this really is what I want to do as I know it is not a popular thing to implement.

RE: Save File to Blob Field?

(OP)
Ask, change your search parameters, and success...

I found an article: https://usefulgyaan.wordpress.com/2014/09/30/store...

"Trick of the Week :: Store (and then fetch) files from SQL Server tables"

This is similar for reading the file to what I remember. I'm not too sure about the using Update statement in command vs. ADO Recordset to load the data.

I have some playing to do.

RE: Save File to Blob Field?

The only thing that I had bookmarked was a classic ASP page for storing files in a blob. Maybe you can figure something out from this page. vbscript in ASP is somewhat similar to VBA.

Duane
Minnesota
Hook'D on Access
MS Access MVP 2001-2016

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close