Pictures ON THE FLY

Results 1 to 3 of 3

Thread: Pictures ON THE FLY

  1. #1
    Cade Guest

    Default Pictures ON THE FLY

    I am wondering if I can return a picture, any format through a compiled DLL written in Visual Basic to be used in a Website.<BR>I know this is not a Visual Basic Forum, but this post is more directed toward the ASP questioning.<BR><BR>Thanks for any help

  2. #2
    Join Date
    Dec 1969
    Posts
    19,082

    Default RE: Pictures ON THE FLY

    yes, it&#039;s perfectly possible, if you reference the ASP Response object from within the DLL and use it&#039;s binaryWrite() method to write the stream of bytes to the ASP response stream. If you already know how to generate the image (in GIF or JPG), the hard part is done. the rest is rather like storing and displaying images in a SQL database<BR><BR>j

  3. #3
    Join Date
    Dec 1969
    Posts
    96,118

    Default An addendum...

    Notice carefully what datatype Response.BinaryWrite is expecting!<BR><BR>**QUOTE**<BR>Syntax -- Response.BinaryWrite data<BR><BR>Parameters -- data<BR>The data to write to the HTTP output. This parameter will be of type VT_ARRAY &#124 VT_UI1, which is a variant array of unsigned one-byte characters.<BR><BR>*************<BR><BR>You can&#039;t simply pass back an array of bytes to VBS and ASP. You *must* pass back a VARIANT of the proper type.<BR><BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •