Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6703921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:13:44+00:00 2026-05-26T07:13:44+00:00

I am working with test data in Visual Studio’s server explorer. How would I

  • 0

I am working with test data in Visual Studio’s server explorer. How would I put images into the database just as test images? I have no front end component built to take care of image uploading.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T07:13:44+00:00Added an answer on May 26, 2026 at 7:13 am

    It will work for SQL server 2008r2…but first u have to create a filestream database.

    //create databse

    CREATE DATABASE Archive 
    ON
    PRIMARY ( NAME = Arch1,FILENAME = 'c:\data\archdat1.mdf'),
    FILEGROUP FileStreamGroup1 CONTAINS FILESTREAM( NAME = Arch3,FILENAME = 'c:\data\filestream1')
    LOG ON  ( NAME = Archlog1,FILENAME = 'c:\data\archlog1.ldf')
    GO
    

    //table creation

    Use Archive
    GO
    CREATE TABLE [FileStreamDataStorage]
    (
    [ID] [INT] IDENTITY(1,1) NOT NULL,
    [FileStreamData] VARBINARY(MAX) FILESTREAM NULL,
    [FileStreamDataGUID] UNIQUEIDENTIFIER ROWGUIDCOL NOT NULL UNIQUE DEFAULT NEWSEQUENTIALID(),
    [DateTime] DATETIME DEFAULT GETDATE()
    )
    ON [PRIMARY]
    FILESTREAM_ON FileStreamGroup1
    GO
    

    //inserting value

    Use Archive
    GO
    INSERT INTO [FileStreamDataStorage] (FileStreamData)
    SELECT * FROM
    OPENROWSET(BULK N'C:\Users\Public\Pictures\Sample Pictures\image1.jpg' ,SINGLE_BLOB) AS Document
    GO
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on populating my database with test data using populate.rake: Repertoire.includes(:jokes).each do
I have been working on test framework, which creates a new app domain to
I am working on a test server with an Oracle 11g installed. I was
I have mocks working where I test that methods on my mocked object are
I'm working on a little test application at the minute and I have multiple
Background Information: Visual Studio 2010 (.NET Framework 4.0) Informix Server 7.31 Informix ClientSDK 3.50
I am using Visual Studio 2010 Pro for simple C programming, I would like
I've just started working with SQL Server for the first time and I'm having
I'm running the nerddinner MVC application on visual studio, and the database is on
This is the working code: var test = function () { console.log(test.data); }; test.data

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.