question

nileshamruskarsqlserver avatar image
nileshamruskarsqlserver asked

Fetching Image in SSRS using ashx handler !! Urgent

This is sample url https://xxx.com/Handlers/DownloadFile.ashx?id=~/abc/attached/xyz.jpg **~/abc/attached/xyz.jpg** is saved in a table. I am picking up that value and concatenating with above url For eg =" https://xxx.com/Handlers/DownloadFile.ashx?id="+Fields!attachmentpath.value But image is not pulling up. Can Some one give me step by step process to fetch an image like above scenario.
ssrs-2012business-intelligence
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
David Wimbush avatar image
David Wimbush answered
It sounds like you need to narrow down what the problem is. Here are some things I would try: 1. Can you see that image if you browse to the URL manually? 2. Does it work if you are on the reporting server? 3. Does it work if you log into the reporting server using the account under which the Reporting Services service is running?
4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

nileshamruskarsqlserver avatar image nileshamruskarsqlserver commented ·
0 Likes 0 ·
nileshamruskarsqlserver avatar image nileshamruskarsqlserver commented ·
But it ask for login first to application then it downloads the image
0 Likes 0 ·
nileshamruskarsqlserver avatar image nileshamruskarsqlserver commented ·
I am sure I am doing some wrong but not sure what ??
0 Likes 0 ·
David Wimbush avatar image David Wimbush commented ·
Looks like some web permissions thing. That stuff is not my specialty, I'm afraid. Presumably there's a way to pass in some credentials before the request is made but I don't know how.
0 Likes 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.