Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying images from file server

Status
Not open for further replies.

skotman

ISP
Sep 11, 2003
328
US
ok, here's the problem I hope someone has a solution because going to every PC and mapping drives isn't going to work well...

I have two servers, one running IIS, the other is a internal file server. I've written a script that takes test info, and displays it back so people in the yard can see it. Now they want pictures of the tests on the test page.

The pictures are stored in one of two directories on the file server (everything is internal). I don't want to install IIS on the file server for obvious reasons. I can map a drive to the file server and reference the image using t:\imagename.ext (that works but it's going to be a pain having to map all those drives)
I'd like to use the FSO object, get the image, and display it that way. I figure I'm going to have to spit out a raw binary stream, but haven't figured out how.

any help? Or does anyone know a way to check to see if the drive is mapped, and if its not, map it on the user's system.

Scott Heath
AIM: orange7288
 
Let me rephrase my issue.
My goal is to display the image as if it were stored in a database, not on the file system.

Now I don't want to save it to the database because I have other apps that need these images as well, hence why they are stored on a network share.


Scott Heath
AIM: orange7288
 
in that case why not stored them in DB and share the DB.
DB could be a simple file list in CSV or text file...
if they are stored as " share"...they are file objects by definition...right?no?
hmmm...tricky

> need more info?
:: don't click HERE ::
 
Well right now we have 2 databases, one I can't /won't touch, the other is mine.
The one that can't be touched is an access database that references the pictures taken at the file level. Not only that, I can't expect my users to save the file locally, then upload it into the database.
My database is fairly organized, but the other...yeha I'm not going there lol.

I can call them like text files are called but it doenst put it all together in an image, so I guess yeah they are file objects.

Scott Heath
AIM: orange7288
 
I guees it depends how ir referencing themin the DB
eg. IF u use
G:\\folder_11\images

and u stored the same ref. in the DB then I say use FileObjects as the folder structure will match DB content...but if the images are STORED in DB.....u would have to pull them as records from DB an connet to it....fuss around with "scheduled export" and see what file type u can export from DB.....hmm....(must keep thinking) LOL

> need more info?
:: don't click HERE ::
 
I've got the path part figured out...it's how to display it...I can't do img src='path to file from server' b/c the client PCs cant find it. When I put a UNC path in the src IE changes things around and that doesnt work either.

So I need to open the image on the server, read it to the page as a binary I'm guessing.

So forget the database stuff, basically what I'm doing is I have a dir located else where on the server, thats not web accessible, and I need to display an image that resides in that dir to the client...

I'm begining to think about mapping a virtual dir to the drive located on another server....hmmmm

Scott Heath
AIM: orange7288
 
K just tried the virtual directory thought I had, it asked for passwords, instead of trouble shooting it (the sysidiot wanted to go home) I just deleted the virtual dirs. now I'm playing with it on my own server and I think I figured out why it was asking for a UN/PW, I had anon access unchecked. I'm gonna have to check that out on Monday when no wait they sent him for his MCSE...grrr well I hope I'll be able to roll this out ASAP.

Scott Heath
AIM: orange7288
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top