PDA

View Full Version : inserting a binary or picture to a database using ASP



zyklone
August 19th, 2004, 05:07 AM
how can i insert a picture to my database using ASP.... anybody answers my question???? and give me the code... thanks!!!

Digitalosophy
August 19th, 2004, 10:23 AM
Browsing your local hard drive from flash can be a bit tricky. If you use Javascript it most likely won't work in Mozilla (from my exp). There are components out there for example Yam'z http://www.yamago.net/components/ which works like a charm.

ASP doesn't handle file uploading the way PHP does. PHP file uploading is simple, with very little code in most cases, this is not the same with ASP. I would recomment getting yourself a server that handles PHP or run a search on google for ASp file uploader scripts.

And don't ask for code, try it yourself first then ask for help with whatever you have a problem with ;)

prstudio
August 19th, 2004, 11:05 AM
you can store the image on your server in a directory, then have the database record point to that pictures link -

and then with some clever image tags and variables get the picture to display with the rest of their information when the database is queried.