Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ This document explains how to store BLOBs (Binary Large Objects) in a layered so

In the layered solution template, the [Database Provider](../../framework/infrastructure/blob-storing/database.md) is used to store BLOBs in the database. The `Volo.Abp.BlobStoring.Database.EntityFrameworkCore` or `Volo.Abp.BlobStoring.Database.MongoDB` package provides the necessary implementations to store and retrieve BLOBs in the database. This setup is integrated into the layered solution template and is used in all related projects. You can change the database configuration in the `appsettings.json` file of the related project.

## Provider Selection

The Database Provider is selected by default. In ABP Studio, use the BLOB Storing step to keep database storage, configure the [File System Provider](../../framework/infrastructure/blob-storing/file-system.md), or choose manual configuration for another provider. In the CLI, pass `--blob-storage database`, `--blob-storage file-system`, or `--blob-storage manual`. When using file-system storage, pass `--blob-storage-path <path>` to set the base path; otherwise, `./BlobStoring` is used.

If you choose manual configuration, configure your preferred provider before using BLOB storage. See the [BLOB Storing provider documentation](../../framework/infrastructure/blob-storing/index.md) for the available providers and their setup requirements.

You can use the `IBlobContainer` or `IBlobContainer<T>` service to store and retrieve BLOBs. Here is an example of storing a BLOB:

```csharp
Expand Down
8 changes: 7 additions & 1 deletion docs/en/solution-templates/microservice/blob-storing.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ In the microservice solution template, the [Database Provider](../../framework/i
"AbpBlobStoring": "Server=localhost,1434; User Id=sa; Password=myPassw@rd; Database=MyProjectName_BlobStoring; TrustServerCertificate=true"
```

## Provider Selection

The Database Provider is selected by default. In ABP Studio, use the BLOB Storing step to keep database storage, configure the [File System Provider](../../framework/infrastructure/blob-storing/file-system.md), or choose manual configuration for another provider. In the CLI, pass `--blob-storage database`, `--blob-storage file-system`, or `--blob-storage manual`. When using file-system storage, pass `--blob-storage-path <path>` to set the base path; otherwise, `./BlobStoring` is used.

If you choose manual configuration, configure your preferred provider before using BLOB storage. See the [BLOB Storing provider documentation](../../framework/infrastructure/blob-storing/index.md) for the available providers and their setup requirements.

Afterwards, you can use the `IBlobContainer` or `IBlobContainer<T>` service to store and retrieve BLOBs. Here is an example of storing a BLOB:

```csharp
Expand All @@ -53,4 +59,4 @@ public class MyService : ITransientDependency

The *File Management* module is optional and can be added to the solution during the creation process. It provides a user interface to manage folders and files. You can learn more about the module in the [File Management](../../modules/file-management.md) document.

![file-management](images/file-management-index-page.png)
![file-management](images/file-management-index-page.png)
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ This document explains how to store BLOBs (Binary Large Objects) in a single-lay

In the single-layer solution template, the [Database Provider](../../framework/infrastructure/blob-storing/database.md) is used to store BLOBs in the database. The `Volo.Abp.BlobStoring.Database.EntityFrameworkCore` or `Volo.Abp.BlobStoring.Database.MongoDB` package provides the required implementations for storing and retrieving BLOBs in the database. This setup is integrated into the single-layer solution template and is used across all related projects. You can modify the database configuration in the `appsettings.json` file of the API project.

## Provider Selection

The Database Provider is selected by default. In ABP Studio, use the BLOB Storing step to keep database storage, configure the [File System Provider](../../framework/infrastructure/blob-storing/file-system.md), or choose manual configuration for another provider. In the CLI, pass `--blob-storage database`, `--blob-storage file-system`, or `--blob-storage manual`. When using file-system storage, pass `--blob-storage-path <path>` to set the base path; otherwise, `./BlobStoring` is used.

If you choose manual configuration, configure your preferred provider before using BLOB storage. See the [BLOB Storing provider documentation](../../framework/infrastructure/blob-storing/index.md) for the available providers and their setup requirements.

You can use the `IBlobContainer` or `IBlobContainer<T>` service to store and retrieve BLOBs. Here is an example of storing a BLOB:

```csharp
Expand Down Expand Up @@ -55,4 +61,4 @@ public class MyService : ITransientDependency

The *File Management* module is optional and can be added to the solution during the creation process. It provides a user interface for managing folders and files. For more information, see the [File Management *](../../modules/file-management.md) document.

![file-management](images/file-management-index-page.png)
![file-management](images/file-management-index-page.png)
Loading