compression FILESTREAM SQL Server Express 2014

bmmsr 101 Reputation points
2020-11-25T19:14:17.27+00:00

Supprimer l'alerte|Modifier|Type de modification
Question
Vous ne pouvez pas voter pour votre propre billet.
0
Hello
I'm Using FILESTREAM to Store BLOBs in the NTFS File System in SQL Server Express 2014, the problem is when I store the image with the size 200ko, I found that the size change to 3000ko, so the size of the file becomes 15 times bigger than his real size?
Is it normal?
or there is anything I can do in the configuration to make compression of files?
Best Regards

Azure Database Migration service
Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,466 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,787 questions
{count} votes

Accepted answer
  1. bmmsr 101 Reputation points
    2020-11-26T17:37:52.117+00:00

    anonymous usere-msft thank you sooo much. your remark is correct, it was converted to BMP for that size change I have changed the code to :
    FDQuery1.ParamByName('image').LoadFromFile(aFile, ftBlob);
    and I have the same size
    the language is Delphi (Pascal)
    thank you again

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Erland Sommarskog 111.1K Reputation points MVP
    2020-11-25T22:54:24.58+00:00

    How did you add the file do the database? Plain insert or OpenSqlFilestream?

    Not that it would matter, you will get the same amount of bytes in either case.

    You may be looking at another file. Items stay around in the filestream folder, even if the row it came from has been deleted. No, it does not stay for ever, but a log backup has to be taken, before garbage collection can set it.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.