make binary array from image by PHP

Discussion in 'PHP' started by rontdu, Jan 2, 2010.

  1. #1
    hei,
    when some people upload some pictures i simply upload them in a folder on my host.but it takes lots of place.Now i want to make a different things.
    I want to convert the image file into a binary array and put them on my database to reduce storage size problem.

    Please help me how can i make a binary array after browse the picture ???


    :confused::rolleyes::eek:
     
    rontdu, Jan 2, 2010 IP
  2. QuackWare

    QuackWare Member

    Messages:
    245
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    35
    #2
    Is file_get_contents() what your looking for?
     
    QuackWare, Jan 2, 2010 IP