Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Problem with MIME Types

Author  Topic 

harlingtonthewizard
Constraint Violating Yak Guru

352 Posts

Posted - 2008-09-23 : 05:40:42
I have tried many .bmp, .jpeg and .jpg files with an image item selecting project as the storage format and it seems to only work with a few for some reason? No errors from sql server the images are just not displayed? The problem does not seem to be limited to any specific image type unless it is something to do with the properties of the file? These images are just from the internet for now. The images can be seen in the layout but they are not dispayed in preview.
Build complete -- 0 errors, 0 warnings
[rsInvalidMIMEType] The value of the MIMEType property for the image ‘image3’ is “”, which is not a valid MIMEType.
Preview complete -- 0 errors, 1 warnings

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-09-23 : 05:47:58
check this out

http://www.sqlservercentral.com/articles/Development/3184/
Go to Top of Page

harlingtonthewizard
Constraint Violating Yak Guru

352 Posts

Posted - 2008-09-23 : 05:57:58
I read the article but failed to see how it can help? I think I understand the basics of how it should work and have had images working with the image item however I am still running into this error?
Go to Top of Page

harlingtonthewizard
Constraint Violating Yak Guru

352 Posts

Posted - 2008-09-24 : 22:03:47
I have not resolved this problem. My Image Item works with bmp images but not jpeg? The error I get is this:
[rsInvalidMIMEType] The value of the MIMEType property for the image ‘image1’ is “application/octet-stream”, which is not a valid MIMEType.
Image Item is set to:
Source = External
MIMEType = image/jpeg
Value = ="file:///" & Fields!ReportImage.Value

Again this works fine for bmp but not jpeg? Any ideas?
Go to Top of Page

mrtnld
Starting Member

1 Post

Posted - 2008-10-09 : 05:17:31
Hi there

I suddenly got the same problem :-(

I had to replace some logo's on a report.
And in Visual Studio I got the same warning [rsInvalidMIMEType].
But if I just replace the logo on the server it works ?!?!?

I even tried to create a new report and just add the logo, using the wizard. But I still get the warning.

I use GIF images, if that makes any difference.

It seam that Visual Studio ignores the MIMEType property, because the warning always state the the property is empty, even if I manually add "image/gif" or just anything.

I haven't had the problem earlier and therefor suspect that MS introduced this in an update or something.

Any suggestions anyone or perhaps the solution?
:-)
Go to Top of Page

harlingtonthewizard
Constraint Violating Yak Guru

352 Posts

Posted - 2008-10-09 : 06:09:49
I never ended up finding out why file: only worked with bmp for me. I ended up setting up a new web page in IIS and then using http external and it now works with any file type. I will post the full solution tomorrow.
quote:
Originally posted by mrtnld

Hi there

I suddenly got the same problem :-(

I had to replace some logo's on a report.
And in Visual Studio I got the same warning [rsInvalidMIMEType].
But if I just replace the logo on the server it works ?!?!?

I even tried to create a new report and just add the logo, using the wizard. But I still get the warning.

I use GIF images, if that makes any difference.

It seam that Visual Studio ignores the MIMEType property, because the warning always state the the property is empty, even if I manually add "image/gif" or just anything.

I haven't had the problem earlier and therefor suspect that MS introduced this in an update or something.

Any suggestions anyone or perhaps the solution?
:-)

Go to Top of Page
   

- Advertisement -