How do you test to see if there is an image?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nstout
    New Member
    • Dec 2009
    • 2

    How do you test to see if there is an image?

    If there is an image the bSuccess comes back true and it displays I do a response. binarywrite. If there is not image how do you test to display a message "there is not a image". If I test bSuccess or bytData with an If statement I get an error HTTP 500 - Internal server error
    Internet Explorer . Is there a way to test this?

    bytData = oSOAP.FetchDocu ment("aProg","< IMS><Documentti tle>" & Session("doc") & "</Documenttitle>< Select>1</Select><Filenum ber>" & Abs(Session("EN ")) & "</Filenumber><Doc Nbr>" & Request.Queryst ring("docno") & "</DocNbr></aProg>",sMimeTy pe,bSuccess)
  • jhardman
    Recognized Expert Specialist
    • Jan 2007
    • 3405

    #2
    what are the bsuccess or bytdata if statements you have tried that cause an error? We should be able to find one that works, your condition is probably just wrong. Of course you could put in an on error statement and print out the "there is no image" message if an error occurs.

    Jared

    Comment

    Working...