I have a Query which involves JSON
say I have created a table like below
create table test_image (
id int(10) not null AUTO_INCREMENT PRIMARY KEY,
name varchar(25) not null default '',
image blob not null
);
I insert the values for the tables and for image i give the location assuming my image is in image folder
on the server at home
named image.jpg
when i generate JSON ( I am using ExpressJS to generate JSON)
I am getting correct JSON response to id
and name
data but for the Image i am getting something like [12 32 33 44]
kinda thing.
why is this happening ?
- I need the url for the Image location for JSON response
- How can i correct my steps