문제

Workbench 6.0.2.

I have inserted the image using the following query:

create table images (ID int,Image BLOB);  
insert into images values (1,load_file('C:\Users\PEL_AY\Desktop\1.jpg') );

But the problem is how to view the image stored image database using load_file

Do I need a front-end to view the image?

도움이 되었습니까?

해결책

You can embed image data just like any data in a MySQL table. For binary data you usually would use a BLOB column data type. MySQL Workbench has a built-in editor for binary data, which you can open via the result grid context menu:

enter image description here

This editor allows to view text, hex binary values and images (limited to those formats the platform can show, e.g. on Windows bmp, gif, png, jpg and a few more).

enter image description here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top