71
Views
5
Comments
[BinaryDownload] Getting error 
Question
binarydownload
Web icon
Forge asset by Joey Moree

Hi Team,

I am getting error when I used the extension.


Thanks,

Rajat Agrawal

2025-09-15 02-35-46
João Moreira

Hi Rajat ,

did you make sure to set the data type of the binary date in the entity ? 

2020-07-21 19-28-50
Rajat Agrawal
Champion

João Moreira wrote:

Hi Rajat ,

did you make sure to set the data type of the binary date in the entity ? 


Hi Joao,

Which entity you are talking here. I am sending url in the input parameter.


Thanks,

Rajat Agrawal

2019-01-02 23-55-18
Mark Ashcroft

I had the same issue, didn't have any time find to correct the solution properly. I just needed the binary file (for an image), so modified the solution to handle my immediate needs.

I found the issue was related to he lines below I never needed a filename, so I just hardcoded a filename, and I commented out ContentDisposition, which was causing the null reference.

You can find the problem around lines 95/96 of BinaryDownload.cs

//           ContentDisposition cDispo = new ContentDisposition(response.Headers.GetValues("Content-Disposition")[0]);
                        ssFileName = "DownloadedFile";// cDispo.FileName;


If someone has time to look into the issue further, this is a handy component.


2023-02-17 15-12-09
Luis Dinis

I had the same error and resolved as mark said.

I think it will be enough to do an extra validation because in that context sometimes we don't have the Headers to get that specific value.

Otherwise a default filename should be returned.

2017-12-13 08-27-28
Joey Moree

Hey guys,

I apoligize for not seeing this sooner. I’ll take a look at the component tommorow.

Do you have an url I can test with? Feel free to PM me.

Expect some update tommorow.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.