Notices
Non Scooby Related Anything Non-Scooby related

ASP / VB Guru?

Thread Tools
 
Search this Thread
 
Old 22 August 2001, 11:47 PM
  #1  
SDB
Scooby Regular
Thread Starter
 
SDB's Avatar
 
Join Date: Feb 1999
Posts: 1,727
Likes: 0
Received 0 Likes on 0 Posts
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
Old 23 August 2001, 05:44 AM
  #2  
rsquire
Scooby Regular
 
rsquire's Avatar
 
Join Date: Sep 1999
Location: Sydney Australia
Posts: 4,018
Likes: 0
Received 1 Like on 1 Post
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
Old 23 August 2001, 09:37 AM
  #3  
BigGT3Fan
Scooby Regular
 
BigGT3Fan's Avatar
 
Join Date: Jul 2001
Posts: 464
Likes: 0
Received 0 Likes on 0 Posts
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
Old 23 August 2001, 09:54 AM
  #4  
SDB
Scooby Regular
Thread Starter
 
SDB's Avatar
 
Join Date: Feb 1999
Posts: 1,727
Likes: 0
Received 0 Likes on 0 Posts
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
Old 23 August 2001, 10:58 AM
  #5  
KF
Scooby Regular
 
KF's Avatar
 
Join Date: Feb 2000
Posts: 405
Likes: 0
Received 0 Likes on 0 Posts
Talking

Steady on mate... there is a queue
KF.
Old 23 August 2001, 12:42 PM
  #6  
KF
Scooby Regular
 
KF's Avatar
 
Join Date: Feb 2000
Posts: 405
Likes: 0
Received 0 Likes on 0 Posts
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:
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
30 January 2024 01:27 PM
mega_stream
Non Scooby Related
2
09 August 2001 07:51 PM
Floyd
Non Scooby Related
8
16 March 2001 04:14 PM
hooksin
ScoobyNet General
8
02 January 2001 03:47 PM



Quick Reply: ASP / VB Guru?



All times are GMT +1. The time now is 01:59 AM.