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

  • Home
  • SEARCH
  • 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 6597317
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:11:38+00:00 2026-05-25T18:11:38+00:00

Which is the best way to insert a font in a SQL Server database,

  • 0

Which is the best way to insert a font in a SQL Server database, while knowing that this font can accessed from different environments (Windows/Linux) and languages (Java/PHP/Python/C#)?

I have a case where I should insert a Font from a C# Winforms application and get this font from Java application, and currently I’m inserting Font.Name, Font.Style and Font.Size and from Java I’m retrieving the font using Font.Decode(); method.

And it works in many cases, but I thought it might be better to transfer the font file to the database and get the font file .ttf from the database by associating a custom constructed string to identify the font with its associated file.

eg: Font Name, Font Size and Font Style + Font File, because sometimes that font is not installed or has a different name on another system (font is very important in my case).

  • 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-25T18:11:39+00:00Added an answer on May 25, 2026 at 6:11 pm

    There’s a really good paper by Microsoft Research called To Blob or Not To Blob.

    Their conclusion after a large number of performance tests and analysis is this:

    • if your pictures or document are typically below 256K in size, storing them in a database VARBINARY column is more efficient

    • if your pictures or document are typically over 1 MB in size, storing them in the filesystem is more efficient (and with SQL Server 2008’s FILESTREAM attribute, they’re still under transactional control and part of the database)

    • in between those two, it’s a bit of a toss-up depending on your use

    If you decide to put your pictures into a SQL Server table, I would strongly recommend using a separate table for storing those pictures – do not store the employee foto in the employee table – keep them in a separate table. That way, the Employee table can stay lean and mean and very efficient, assuming you don’t always need to select the employee foto, too, as part of your queries.

    For filegroups, check out Files and Filegroup Architecture for an intro. Basically, you would either create your database with a separate filegroup for large data structures right from the beginning, or add an additional filegroup later. Let’s call it “LARGE_DATA”.

    Now, whenever you have a new table to create which needs to store VARCHAR(MAX) or VARBINARY(MAX) columns, you can specify this file group for the large data:

     CREATE TABLE dbo.YourTable
         (....... define the fields here ......)
         ON Data                   -- the basic "Data" filegroup for the regular data
         TEXTIMAGE_ON LARGE_DATA   -- the filegroup for large chunks of data
    

    Check out the MSDN intro on filegroups, and play around with it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to find the best way to insert or update data in database
I want to insert 65545 rows from csv to SQL Server 2008 in C#.net
What's the best way to import a small csv file into SQL Server using
Which is Best way to send data to aspx page, and why ? using
What is the best way to determine which ASP.NET button was clicked on a
What's the best way to take some plain text (not PHP code) which contains
What would be the best way to resize images, which could be of any
I'm trying to determine the best way of having a PHP script determine which
Which is the best timer approach for a C# console batch application that has
I am wondering what's the best way to insert customization hooks into my application.

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.