Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retieve BLOB data from DB for i gets converted #11

Open
bvv400 opened this issue Dec 23, 2024 · 0 comments
Open

Retieve BLOB data from DB for i gets converted #11

bvv400 opened this issue Dec 23, 2024 · 0 comments

Comments

@bvv400
Copy link

bvv400 commented Dec 23, 2024

THE BUG
IBM i DB table column as BLOB data which contains the contents of a JPEG file gets converted when using the bwicompanies/db2-driver in an IBM i V7r4 Seidon PHP Laravel 11 app.
The same app on a Linux RHEL 8 with a Oracle DB driver does not convert the JPEG data.

The data in the IBM i DB table BLOB is a copy from the Oracle DB and is binary the same when both columns are compaired.
(See Check with DB viewer )

To Reproduce
Store a JPEG picture in a BLOB field, retieve the data in a Laravel 11 controller field, print Header information en echo the content of the picture to a Browser session .

Expected behavior
BLOB data should not be converted when retieving it with the db2-driver

Screenshots
wrong (IBM i)
image
right (linux)
image

Code
image

Check with DB viewer
IBM i
image
Oracle
image

ODBC settings

IBM i
image
Oracle
image

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant