-1

I have an image which is initially from a link and I download it using php then save it to my image folder in a web server/site but I am having difficulties to save it to my database.

There is probably some article that talks about this but I failed to find it. I have been researching for hours now but got nothing.

Shadow
  • 33,525
  • 10
  • 51
  • 64
dot riko
  • 1
  • 1
  • i use php. it will do for me! i am trying to avoid using a form which posts the image first and later capture it in php and upload to mysql. – dot riko Jan 25 '18 at 23:56
  • 1
    you should make an attempt and show your working here. People don't take kindly to requests that have not made a genuine attempt. provide a [mcve] and ask for specific help of where you are stuck. – Alan Jan 26 '18 at 00:02

1 Answers1

0

This question had been answered here: How to insert images in blob in mysql table using only sql syntax (without PHP)?

Using PHP you could do this in reverse:

Php : Convert a blob into an image file

This means you will have to fopen() your file and INSERT… in mysql.