displaying binary data

G

Guest

Hi Guys,

I have set the datatype of one column as image in database. I can upload
doc, txt etc files in this column.

How can i display the document in webpage for example set the text of label
or use Reponse.Write? I am unable to do so as it shows some garbage letters
and if set the content type, it renders the original document.

Thanks

Manny
 
P

Peter Rilling

Which is how it is suppose to work. Why would you think that setting a
label (which is HTML) to some binary content will show the binary content?

You can only provide links to binary content which, when clicked, will
either open in the browser or ask you to download it.
 

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

Top