|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Unable to download binary data
hi
,I am working on WAP site. I am reading byte array(of MIME type) from Database but when i try to write to device, it is saying that requested page cant be displayed. Device should ask for download data. Following is the code snippet. Response.ContentType = "Content-type: pplication/vnd.smaf, TRUE"; Response.AddHeader("Content-Disposition", "attachment; filename=" + objDT.Rows[0][2].ToString()); Response.BinaryWrite((byte[])objDT.Rows[0][0]); But it is not working, pls help me as soon as possible, Thanks |
|
#2
|
||||
|
||||
|
Hi, welcome to DS.
I assume the the following is a typo? Code:
Response.ContentType = "Content-type: application/vnd.smaf, TRUE"; Do your rows actually return any results? Instead of trying to set the headers, print out what the headers should return to see if they are as expected...
__________________
Cheers, Jamie # mdb4u | mobile movie database] | Please help to test and promote # skiFFie | Home of the 'accessibility module' for Drupal # Jamie Burns [me] Accessibility Module [drupal] # guidelines | search | wap resources | not getting help | fold to cure __________________ Let the might of your compassion arise to bring a quick end to the flowing stream of the blood and tears ..... Please hear my anguished words of truth. ![]() __________________ |
|
#3
|
|||
|
|||
|
Yes, row is returning data, i can c the image in browser but when i try with any device then its not working. I tried with all content types......
Quote:
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Mobile Programming > Unable to download binary data |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|