Hi all,
Anyone know how to get the binary data of an image? ?
The scenario is this:
I am part-way through building an application that will allow my fellow colleagues to simply enter a product code into a form, and the relevant product photo will be uploaded to twitpic (twitter’s image library) automatically.
I’m looking at the API for twitpic, and it requires the information to be sumbitted via a form:
[B]The image in question needs to be ‘Browsed for’…
This is annoying. I don’t want to have to browse for a file that I already have on our server!!
I can see a way round it though – which would be to post the binary data of an image that we have on our server.
[B][SIZE=”4″]However, in order to do this – I need to retrieve the binary data of the image in question!
I haven’t a clue where to start. get_file_contents, seems to only show the product on the screen, and I can’t see any information in the php.net/gd help files…
Any information would be greatly appreciated!
Thanks in advance,
Rachael