https://github.com/yuseok-kim-edushare/ms-sql_img2jpg
This is a .NET library that converts any MS-SQL Image type Column's Data into jpg file. The library is specifically designed to be used with PowerBuilder applications. but any COM or .NET(C#) method calling can use this project artifact
https://github.com/yuseok-kim-edushare/ms-sql_img2jpg
Last synced: 3 months ago
JSON representation
This is a .NET library that converts any MS-SQL Image type Column's Data into jpg file. The library is specifically designed to be used with PowerBuilder applications. but any COM or .NET(C#) method calling can use this project artifact
- Host: GitHub
- URL: https://github.com/yuseok-kim-edushare/ms-sql_img2jpg
- Owner: yuseok-kim-edushare
- License: mit
- Created: 2025-03-10T09:30:01.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2025-03-10T09:56:18.000Z (3 months ago)
- Last Synced: 2025-03-10T10:33:45.575Z (3 months ago)
- Language: C#
- Size: 2.65 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# MS-SQL Image column data to jpg Converter .NET Library For PowerBuilder
This is a .NET library that converts any MS-SQL Image type Column's Data into jpg file.
The library is specifically designed to be used with PowerBuilder applications.
but any COM or .NET(C#) method calling can use this project artifact## Features
- Convert Image byte stream to JPG byte stream
## Requirements
- Windows 10 20H2 or Later (server 2022 or later)
- .NET Framework 4.8.1
- Not Ensured, but it should work with .NET 4.8 and windows 7 or later
- MS introduce no comapatibility change from .NET 4.8 to .NET 4.8.1
- then, it should work with .NET 4.8 and windows 7 or later
- (For Development) Visual Studio 2022+
- or .NET 8+ SDK for using dotnet build command## Building the Library
1. Open the solution in Visual Studio
2. Build the solution in Release mode
3. if you want to build with dotnet cli(cause of not having visual studio)
```powershell
dotnet build ms-sql-image2jpg.csproj --configuration Release
```## Usage in PowerBuilder
1. Use PowerBuilder's ".NET DLL Importer" tool to import the assembly:
- Open your PowerBuilder project
- Select Tools → ".NET DLL Importer"
- Browse to and select dll file
- Generate the proxy object2. Create an instance of the converter:
```powerbuilder
nvo_imageconverter lnvo_imageconverter
lnvo_imageconverter = create nvo_imageconverter
```3. Call method of class
```powerbuilder
lnvo_imageconverter.of_saveasjpg(bPhoto,ls_picture_path)
```
```powerbuilder
blob lb_converted_photo
lnvo_imageconverter.of_converttojpg(bPhoto)
```