Notices
Non Scooby Related Anything Non-Scooby related

ASP / VB Guru?

Thread Tools
 
Search this Thread
 
Old Aug 22, 2001 | 11:47 PM
  #1  
SDB's Avatar
SDB
Thread Starter
Scooby Regular
 
Joined: Feb 1999
Posts: 1,727
Likes: 0
Post

Hi

This is driving me NUTS!!!

At present I'm using the ADODB.Stream object and then using the LoadFromFile method to grab an image from the server and turn it into a binary stream for output.

I need to be able to do the same with images that are located at URLs rather than a path on the server..

so at present I'm using

objStream.LoadFromFile "c:somedirsomeimage.gif"

and I want something that will allow me to do something like

objStream.LoadFromFile "http://www.someurl.com/someimage.gif"

Any ideas? Do I need a completely different object?

Do I need to copy the file to the server first?

Any help would be appreciated.

Cheers

Simon
Reply
Old Aug 23, 2001 | 05:44 AM
  #2  
rsquire's Avatar
rsquire
Scooby Regular
 
Joined: Sep 1999
Posts: 4,018
Likes: 1
From: Sydney Australia
Smile

Simon.. Email with a code sample and I'll have a few words

Richard

Oh.. Sorry.. But I haven't mailed your VS7.NET beta cds yet..

Been a bit busy Sorry I hope to get them in the post before I head for Aussie on Saturday

Richard
Reply
Old Aug 23, 2001 | 09:37 AM
  #3  
BigGT3Fan's Avatar
BigGT3Fan
Scooby Regular
 
Joined: Jul 2001
Posts: 464
Likes: 0
Post


Simon,

I think it's as simple as using Server.MapPath, isn't it?

Server.MapPath translates virtual addresses into physical file locations, e.g.

objStream.LoadFromFile Server.MapPath ("http://www.someurl.com/someimage.gif")

HTH,


Alex
Reply
Old Aug 23, 2001 | 09:54 AM
  #4  
SDB's Avatar
SDB
Thread Starter
Scooby Regular
 
Joined: Feb 1999
Posts: 1,727
Likes: 0
Post

KF

I'm going to have to make love to you I'm affriad!!

Thank you very much, that sorted it.. I was missing the "URL=" bit! DOH!!!

Thank you very much indeed.

Thanks rich and alex also

All the best

Simon
Reply
Old Aug 23, 2001 | 10:58 AM
  #5  
KF's Avatar
KF
Scooby Regular
 
Joined: Feb 2000
Posts: 405
Likes: 0
Talking

Steady on mate... there is a queue
KF.
Reply
Old Aug 23, 2001 | 12:42 PM
  #6  
KF's Avatar
KF
Scooby Regular
 
Joined: Feb 2000
Posts: 405
Likes: 0
Post

Simon,
Looks to me as though you need to use the Open method instead of the LoadFromFile.
Just a stab in the dark. Good luck...
KF.

Edit:
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
Jan 30, 2024 01:27 PM
mega_stream
Non Scooby Related
2
Aug 9, 2001 07:51 PM
Floyd
Non Scooby Related
8
Mar 16, 2001 04:14 PM
hooksin
ScoobyNet General
8
Jan 2, 2001 03:47 PM




All times are GMT +1. The time now is 09:24 AM.