How to create a file in ASP/VBScript?

T

thisis

Hi All,

What options/methos/properties/functions/objects do I have in order to
create a
Function in ASP/VBScript that process/create binary data as an image
file type?


The Function is supoosed to get 2 parameters:
1. The file image content type defined as "image/bmp" , strContentType
2. the file binary data, binDataImageBytes (which is stored in session
vars)


The Function should return/create an Image File , for instance
~tmpImg.BMP


My Question is
How to create a binary Image file type from the session var binary
data ?
 
A

Anthony Jones

thisis said:
Hi All,

What options/methos/properties/functions/objects do I have in order to
create a
Function in ASP/VBScript that process/create binary data as an image
file type?


The Function is supoosed to get 2 parameters:
1. The file image content type defined as "image/bmp" , strContentType
2. the file binary data, binDataImageBytes (which is stored in session
vars)


The Function should return/create an Image File , for instance
~tmpImg.BMP


My Question is
How to create a binary Image file type from the session var binary
data ?

The ADODB.Stream object will probably suit your needs

Google it with the keywords ASP and Upload should get you some useful
results you can tweak.
 
T

thisis

Anthony said:
The ADODB.Stream object will probably suit your needs

Google it with the keywords ASP and Upload should get you some useful
results you can tweak.

Hi Anthony Jones,

I haven't looked in adodb.straem obj yet,
Thanks for the ref's.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top