Home > ASP Development > Binary image and upload form help

Binary image and upload form help



Hello. I have a form which upload a binary image and the description of that image into a Microsoft database.



I want to show the user what he had uploaded in a second page using a resquest.querystring. But it doesn't show anything. I have tried to change to Request.form but there is an error:



Error Type:

Request object, ASP 0206 (0x80004005)

Cannot call BinaryRead after using Request.Form collection



What am i suppose to do? i cannot put request.querystring cuz it doesn't show and i cannot use request.form cuz i am using binaryread. Any help will be appreciated. Thank you

    
Guest


cant you just pull it from the database?

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by baseballdude_
cant you just pull it from the database?




pull it from the database, right. What was I thinking abt request.form and all. Must be staring at the code too long.

Was this answer helpful ? Yes No   
Guest


i know how that goes! believe me!

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by poppy_wolf
Hello. I have a form which upload a binary image and the description of that image into a Microsoft database.



I want to show the user what he had uploaded in a second page using a resquest.querystring. But it doesn't show anything. I have tried to change to Request.form but there is an error:



Error Type:

Request object, ASP 0206 (0x80004005)

Cannot call BinaryRead after using Request.Form collection



What am i suppose to do? i cannot put request.querystring cuz it doesn't show and i cannot use request.form cuz i am using binaryread. Any help will be appreciated. Thank you




You are right. It is not allowed to use BinaryRead after using Request.Form collection. I encounter this a few months back on one of my project. If I am not mistaken, it has something to do with security.. So, you are better off using what baseballdude suggested since you got the desc in the db

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by poppy_wolf
Hello. I have a form which upload a binary image and the description of that image into a Microsoft database.



I want to show the user what he had uploaded in a second page using a resquest.querystring. But it doesn't show anything. I have tried to change to Request.form but there is an error:



Error Type:

Request object, ASP 0206 (0x80004005)

Cannot call BinaryRead after using Request.Form collection



What am i suppose to do? i cannot put request.querystring cuz it doesn't show and i cannot use request.form cuz i am using binaryread. Any help will be appreciated. Thank you
Can you please post your code here.

Was this answer helpful ? Yes No   
Guest


Quote:
Originally Posted by barneybabe
Can you please post your code here.




thanks but i got it working already. i pull it from the database and now it is working.

Was this answer helpful ? Yes No   
Guest
 
 
Home - About Infoqu - Contact - Privacy Statement - Link to Infoqu - Bookmark Infoqu

Copyright 2007-2008 by Infoqu. All rights reserved