I'm struggling with SSRS to get external Images shown on my report.
Situation/Environment
SSRS 12
Images are hosted on Akamai (Caching Server)
Problem
If I call the image by http://server/folder/image.jpg I see the image in Report Builder Design View, Preview and online on the server. HTML on the server:
<img onload="this.fitproportional=true;this.pv=0;this.ph=0;" height="155" src="/Reports/Reserved.ReportViewerWebControl.axd?
ReportSession=0vesr555hdhfqebcbzbyf4el&Culture=1031&CultureOverrides=False&UICulture=7&UICultureOverrides=False&ReportStack=1&
ControlID=db6faa0405f142afa197478522ab25ae&OpType=ReportImage&IterationId=822ad1f6603e4ed5a7669b1863d74b1f&
StreamID=73e6746a0121466fa7e9c958c3dfb384" width="96">
If I call the image by http://server/folder/image.jpg?downsize=100:* I see the image in Report Builder Design View but not in Preview and not online on the server. HTML:
<img onload="this.fitproportional=true;this.pv=0;this.ph=0;" height="155px" src="">
Testing
That behavior can be tested with these examples:
Working: http://tech.akamai.com/image-manager/img/mountain.jpeg
Not working: http://tech.akamai.com/image-manager/img/mountain.jpeg?downsize=640:*
I have to use the downsize parameter (and others) as the images are stored in full resolution and the report gets really big if they're not resized. The list of images is dynamically loaded by a SQL-Dataset and there are tons of images so I can't resize and save them somewhere else...
I tried many URL/parameter constellation and my conclusion is: SSRS can't/won't handle the = (equal sign) in the image path.
All other characters seems to work without trouble only the equal sign.
Did somebody had the same problem and found a solution for handling "=" in SSRS external Image URL paths?
Have you tried using the ASCII %3D rather than an equals symbol?
Related
I am just getting started using HTML and I seem to have fallen at the first hurdle.
I am trying to create a basic webpage containing an image that is downloaded when clicked.
So far I have:
<a href="/images/selfie_img.jpg" download>
<img src="/images/selfie_img.jpg" alt="Selfie" style="width: 300px">
</a>
I expected this to display the image I want as it seems to my eye to be formatted exactly like all the examples I have seen. However, this only displays the alternative title, not the actual image.
I have checked the image path, and used different images to try and solve the problem. I am using VS code and the software can follow the image path to find the appropriate image, but when I load the program, the image is replaced by that annoying blue question mark. Using a URL as the image path seems to work but then the image isn't downloaded when clicked, I just get the URL.
Welcome to StackOverflow, SpicedWater!
The problem you're describing is most likely caused by a wrong path. Your browser resolves the images path and can't find it. I suggest you take a look at the source code in your browser or the developer console's network tab to see what path it's trying to find this image at and which http status code the browser determined.
I am wondering if someone can help me with a problem I am encountering with iPhone/iPad. I have an email the generates a report as an HTML attachment. In that HTML attachment, there are two images. One is a static image that pulls down a logo using a normal HTML img tag.
The other is dynamic. It also uses the normal HTML img tag, however it calls out to a web api with some information identifying the user.
<img src="http://MyApiServerName.com/api/User/{id}/{OtherParm}" >
The Web API uses information on the user to return appropriate images to them. For some reason the dynamic image does not show up with the attachment is opened on an iPad/iPhone.
The image works just fine when the attachment is opened from a computer. I thought maybe something might be blocking images, however then I would expect the static image not to display as well. I verified that the "Load Remote Images" setting is turned on.
I am at a loss here. Is there something with iOS that prevents dynamically generated images from showing in HTML attachments?
Thanks
Ok, I can't explain why the above is not working, but I did find something that does. Instead of using the following URL
<img src="http://MyApiServerName.com/api/User/{id}/{OtherParm}" >
use
<img src="http://MyApiServerName.com/api/User/{id}/{OtherParm.jpg}/" >
The final param needs to end with ".jpg/". If the slash is not there, you will get a 404 error.
Then in the API method, you simply strip off the .jpg part of "OtherParm" to get the intended value for "OtherParm".
I need data driven subscription on a report in ssrs 2008 that put html or mhtml into email message. The reason is to have opportunity to view reports in mobile devices without additional applications except email, thats why I cant use pdf or excel format.
When I convert report into html4.0 file by clicking on “Export” button everything is fine report looks exactly as template and there are enough space between pages.
But when ssrs creates email with html file report pages slides over each other. When I zoom out report it increase the distance between pages.
I figure out the problem. Manualy created report has such a style for every report page
<div style="WIDTH:100%;" class="ap">
but sent html has:
<div style="HEIGHT: 100%; WIDTH:100%;" class="ap">
If I manually comment “HEIGHT: 100%” pages become in readable style.
So Imy question is how to set up ssrs to create html without “HEIGHT: 100%”.
I really don't want to create external html processor to update html generated by SSRS.
Thank you for your help.
have you tried making the div style="HEIGHT: 100%" part of you style for each page, but maybe using different values (instead of 100%) to see if you attain the same result? It may be that 100% is too much but a smaller % may be ok and including the height in your style should ensure that the Height:100% is not embedded at export. Hope this helps.
I have a WordPress custom page that has the following image coded in it (CSS in another file applied to a class of this image, just shortening the story here):
<img src='wp-content/themes/MyTheme/images/someimage.png' style='display: none;' />
Once I upload everything on the server it all works fine. However, after a while I can see that the source of that image changed to something like this:
<img src="data:image/png;base64,iVBORw0KGgo...uQmCC" style="display: none;">
This is a huge problem as (long story short) I need to have that image loaded on the page not as a data URI scheme but a regular source link so it is correctly displayed if certain events on the page happen (it works fine before the src is changed and it doesn't after).
Since data URI scheme is new to me how can I prevent it from happening and have the regular source link always displayed? (mind you, at this point I'm not sure whether the WordPress is responsible for it or the server itself)
Any tips would be greatly appreciated, thanks!
It's possible that you have PageSpeed modules enabled that are doing this on your website. Had similar issues before.
You can enable and disable modules by using an htaccess file at the root
of the website using flag to set your preferences. This page explains
how:
https://developers.google.com/speed/pagespeed/module/filters
i want to develop an iPhone optimized website, which includes an generated image. To generate the image i call an external website (aspx). Example:
https://url/filedownload.aspx?documentid=1234&mimetype=image/jpeg
This is no problem on any standard browser on the pc, the images shows up after 2 seconds. But on the iphone there is only the blue question mark showing.
The resultion is ~ 170 * 100 72dpi.
This is certainly a server-side issue, as suggested - a working link or a sample of the source is needed to help resolve. In the meantime, some other things to check; does the image type created match that of the content type specified?
I would then try adding the exact same image (as a static physical file) to the website, load this in an iPhone (to prove there is nothing fundamentally wrong with the image file data) and then compare response headers from your dynamic image code to ensure they are the same - do you require attachment-filename for example?