rdlc report image not showing when using azure blob storage - image

I am converting an application from my own hosted server to Azure Websites. I use RDLC to create reports, invoices, etc. I use fixed URL's to load images with
(IE: logo = String.Format("file:///{0}{1}", path, "logo" & XXXXXX & ".jpg")
The variable logo is passed via report parameters into the RDLC.
This works fine when my programs run on my on server. HOWEVER, when I use my Azure Storage container URL, the image does not get loaded when my report runs.
When I use a URL from my web site, the image loads properly.
This works: logo = "http://www.resellsolutions.com/images/ReSell-191x72.png"
This does not work:
logo = "http://crmna.blob.core.windows.net/logos/2d66e0fb-d534-434f-9a81-d3f02256e25f_ReSell-191x72.png"
I can load the blob storage URL into a web browser and the image loads fine. It just will not load in the report.
All help is appreciated.

I know why you're running into this issue. I accessed the image through Fiddler and this is the response I got:
If not notice, content-type of the blob is set as application/octet-stream and this is causing the problem. Please change the content-type property of the blob to image/png and that should fix the problem.

Related

Google Data Studio inserted images lost when duplicating report

I have recently inserted some images into a google data studio report using both image from computer and by url (on a public domain) as graphics to make it more visually appealing.
When we duplicate the report, all of the data sources are ok but the report looses the images. It looses them even if they are hosted on a public web server accessing by https://
When I click on the image, it shows the image url in the property tab, but on clicking the button with the url it asks to upload from computer.
Is there a way to have images in the report and be able to duplicate whilst not loosing the linkage or do i need to replace the images every time.
We have tried
Uploaded image from computer
hosted image on https:// publicly accessible domain
used embeded url object to images on https:// publicly accessible domain

Why are images loaded from a public S3 bucket no longer displaying after upgrading to Chrome 76?

I am developing a react app that loads images from a public s3 bucket, this has been working consistently for months. Today I upgraded to google chrome 76 and instead of loading the images it just returns a blank.
The same effect was seen on a number of machines.
Interestingly the request for the image returns 200 but there's no image shown. If I visit the S3 url link manually the image is visible.
I was wondering if it could have anything to do with this forum post and new security measures introduced in the new version of chrome?
Here's a snippet of the content security policy we have for image requests
<meta
http-equiv="Content-Security-Policy"
content="img-src * 'self' blob: data:;"
/>
Is there anything I can do to get these images loading again?
I have got to the root of this and it seems like this was a CORB issue. Which must have been updated slightly in the new v76 release.
What was happening is that, when we were uploading the images to S3, we weren't explicitly setting the Content-Type header in the upload request. S3 then was incorrectly deriving the Content-Type as application/x-www-form-urlencoded. So when we tried to GET the images and load them into an img tag, Chrome saw this as invalid (understandably) and then blocked them.
Interestingly, the images have been loading in with the wrong content type fine up until now and I wasn't shown any CORB warnings until I started uploading new images.
Useful article on CORB for developers
Stack Overflow Article that helped:
How to change content type of Amazon S3 objects
Hope this helps!

How can we view uploaded files in data browser in parse.com?

I am using parse.com as a data storage backend for one of my web app.
I want to upload images on parse.com and I was successful in uploading images to parse.com and parse is returning a long unique URL for uploaded image as well.
When I tried to open the image using returned URL, image was opened which means upload was successful.
However I am not able to see uploaded images in parse.com file browser. Can someone suggest how to view all uploaded images in file browser?
Thanks
The only way to view these files is to download them and then view them locally. To do this you must do the following.
In the Parse data browser, navigate to the file cell.
Click on the cell, and choose a download location.
Open the file on your local machine.
Note: The file you download won't have an extension so you might have to specify the application you want to open the file. In your case it would be an image viewer.

Refresh an uploaded image in JSF(to display)

I'm developing a JSF application which has an image upload function. I'd like to display the uploaded image. The uploading works fine but when I delete the uploaded picture and upload a new one, the old one is displayed in the browser. I typed the link of the picture in the browser but I sill get the old one. I use the same file name and I would not like to change it. How could I refresh it. (without Javascript). I'm using Glassfish Server. (Redeplyoing the application I get the new picture but it isn't a solution for an online system ;))
Thank you.
Redeplyoing the application I get the new picture
Don't store it in the deploy folder by getRealPath() and consorts. Store it outside the deploy folder.
See also:
Uploaded image only available after refreshing the page

Can not show uploaded image with CKEditor when editor and upload action file live on seperate server

I tried upload image with CKEditor form ASP.net server and send image to upload with PHP in another server.
That's work for upload image but the image didn't show on editor.
Please could you help to solve this problem.
You can't use different servers due to cross-site scripting protection by the browser. Check this sample: http://cksource.com/forums/viewtopic.php?p=46715#p46715

Resources