MIME Types support in JSP
how do i implement MIME types in jsp page downloads? i could do it in php using stream and content type.. any help?
Hi
Right know we are also facing this problem i guess.
How do you make 8.1 Standard Edition aware of mime for jnlp so that webstart can be used ??
Jan
Similar Messages
-
No CGI or MIME types support in AS8???
We're currently running AS7 and are looking at a possible move to AS8 due to some bugs in AS7 that Sun doesn't want to fix. However, this looks to be a difficult proposition, at best, as the AS8 release notes seem to indicate that CGI and the mime.types file features of AS7 are no longer supported.
While all of our new development is in J2EE, we have legacy CGI apps that need to continue to be used. We also have uncommon content that in the past has required that we define entries in the AS7 mime.types file in order to get the client to handle the downloads properly.
Has anyone gone through this migration that can explain what an appropriate solution to this issue is? The AS8 release notes and migration guide simply state that they are not supported, but give no suggestion as to how to replace them.
Thanks,
BillHi
Right know we are also facing this problem i guess.
How do you make 8.1 Standard Edition aware of mime for jnlp so that webstart can be used ??
Jan -
The content type for office excel 2007 in jsp page and the mime-type in we
Hi,
In my system MS Office 2007 is installed. I am trying to generating excel sheets from JSP page by setting the content type "application/vnd.ms-excel" in jsp page and as well as in web.xml file. I am getting the below message
The file you are trying to open, 'xxxxxxxx.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do you want to open the file now?
Then finally the excel file is opening and displaying properly. If in my system MS Office 2003 is installed , then the above message is not coming.
I have changed the content type according to Excel 2007 <%@ page contentType= "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" %> and in web.xml file the mime type to
<mime-mapping>
<extension>xlsx</extension>
<mime-type>application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</mime-type>
</mime-mapping>
even the content type is changed according to office excel 2007 , i am getting the same above message.
My client is asking not to display the above message. So how to prevent that message ?
It's very great if any body reply me as soon as possible.Hi Akash,
I am not using the POI. I am generating the excel sheet using the below code.
<jsp:directive.page import="java.util.Map" />
<jsp:directive.page import="lehman.ra.Report.ReportDefinition" />
<jsp:directive.page import="lehman.ra.RAUtilBean" />
<jsp:directive.page import="java.util.ArrayList" />
<jsp:directive.page import="lehman.util.GeneralUtil" />
<jsp:directive.page import="lehman.admin.report.AdminHtmlReportFormatter"/>
<jsp:directive.page import="lehman.helper.irprod.IRProdHelper"/>
<%@ page contentType= "application/vnd.ms-excel" %>
<jsp:directive.page import="java.util.Iterator"/>
<jsp:directive.page import="java.util.HashMap"/>
<%
String strTradeDate = (String) session.getAttribute("TradingDate");
String sContextPath = request.getContextPath();
IRProdHelper irHelper = new IRProdHelper();
String sReportFormat = "E2E";
String subtab1 = request.getParameter("subtab1");
if (subtab1 == null)
subtab1 ="";
Map report_Ids = (Map) session.getAttribute("ADMIN_E2E_REPORTS");
AdminHtmlReportFormatter formatter = new AdminHtmlReportFormatter();
ArrayList contentData = new ArrayList();
ArrayList headerData = new ArrayList();
ArrayList metaData = new ArrayList();
Map resultMap = null;
String headerString = "";
String contentString = "";
String reportId = "";
int titleSpan = 5;
if( report_Ids!=null && report_Ids.size() > 0){
Object oReportObj = null;
Iterator rowIter = report_Ids.keySet().iterator();
RAUtilBean raUtilBean = new RAUtilBean();
ReportDefinition rdef = new ReportDefinition();
while ( rowIter.hasNext() ){
oReportObj = rowIter.next();
reportId = oReportObj.toString();
System.out.println("**************reportId="+reportId);
resultMap = (HashMap) report_Ids.get(oReportObj);
if(resultMap == null )
continue;
if(resultMap.size() > 0 ) {
contentData = (ArrayList)resultMap.get(GeneralUtil.CONTENT_DATA);
headerData = (ArrayList)resultMap.get(GeneralUtil.COL_METADATA);
metaData = (ArrayList)resultMap.get(GeneralUtil.METADATA);
rdef = new ReportDefinition();
raUtilBean.setReportAttributes(rdef, headerData, metaData,reportId, sReportFormat);
titleSpan = raUtilBean.findMaxCol(contentData, rdef.getDisplayCols());
if("51031".equals(reportId)){
if(resultMap.get("HIDE_ETA")!=null){
boolean hideETA = ((Boolean)resultMap.get("HIDE_ETA")).booleanValue();
formatter.setHideETA(hideETA);
if(hideETA){
titleSpan = titleSpan-1;
rdef.setMaxCol(titleSpan);
headerString = formatter.constructHeadingForE2E(rdef, headerData);
contentString = formatter.constructContentForE2E(rdef, contentData, strTradeDate, sReportFormat);
%>
<html xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252"/>
<meta name="ProgId" content="Excel.Sheet"/>
<meta name="Generator" content="Microsoft Excel 9"/>
<link rel="File-List" href="./Test33_files/filelist.xml"/>
<link rel="Edit-Time-Data" href="./Test33_files/editdata.mso"/>
<link rel="OLE-Object-Data" href="./Test33_files/oledata.mso"/>
<link href="<%=sContextPath %>/llehman.css" rel="stylesheet" type="text/css">
<link href="<%=sContextPath %>/llcontent.css" rel="stylesheet" type="text/css">
<style>
<xsl:comment>
table
{mso-displayed-decimal-separator:"\.";
mso-displayed-thousand-separator:"\,";}
.style0
{mso-number-format:General;
text-align:general;
vertical-align:bottom;
white-space:nowrap;
mso-rotate:0;
mso-background-source:auto;
mso-pattern:auto;
color:windowtext;
font-size:10.0pt;
font-weight:400;
font-style:normal;
text-decoration:none;
font-family:Arial;
mso-generic-font-family:auto;
mso-font-charset:0;
border:none;
mso-protection:locked visible;
mso-style-name:Normal;
mso-style-id:0;}
.xl21
{mso-style-parent:style0;
color:black;
font-size:8.0pt;
font-family:Arial, sans-serif;
mso-font-charset:0;
border-top:.5pt solid silver;
border-right:.5pt solid silver;
border-bottom:.5pt solid silver;
border-left:none;}
.xl24
{mso-style-parent:style0;
mso-number-format:"\#\,\#\#0\.00_\)\;\\\(\#\,\#\#0\.00\\\)";}
.xl25
{mso-style-parent:style0;
mso-number-format:0%;}
.xl26
{mso-style-parent:style0;
mso-number-format:"\#\,\#\#0_\)\;\\\(\#\,\#\#0\\\)";}
.xl27
{mso-style-parent:style0;
background-color:#666666;
color:#FFFFFF;
font-size:9.0pt;
font-family:Arial, sans-serif;
mso-font-charset:0;
text-align:left;
vertical-align:middle;
border-top:none;
border-right:.5 pt solid silver;
border-bottom:.5pt silver;
border-left:none;
mso-pattern:auto none;
white-space:normal;
.xl55
color:black;
font-size:8.0pt;
font-weight:700;
mso-style-parent:style0;
mso-number-format:"\#\,\#\#0_\)\;\[Red\]\\\(\#\,\#\#0\\\)";
mso-pattern:auto none;
font-size:9.0pt;
font-family:Arial, sans-serif;
mso-font-charset:0;
text-align:right;
border-top:none;
border-right:.5pt solid silver;
border-bottom:.5pt solid silver;
border-left:none;
.xlDate{
mso-style-parent:style0;
mso-number-format:"yyyy\\-mm\\-dd";
.xlDateTime{
mso-style-parent:style0;
mso-number-format:"yyyy\\-mm\\-dd\\ h\\:mm\\ AM\/PM";
</xsl:comment>
</style>
<xml>
<x:ExcelWorkbook>
<x:ExcelWorksheets>
<x:ExcelWorksheet>
<x:Name><%=subtab1%></x:Name>
<x:WorksheetOptions>
<x:ProtectContents>False</x:ProtectContents>
<x:ProtectObjects>False</x:ProtectObjects>
<x:ProtectScenarios>False</x:ProtectScenarios>
</x:WorksheetOptions>
</x:ExcelWorksheet>
</x:ExcelWorksheets>
</x:ExcelWorkbook>
</xml>
</head>
<body text="#000000" style="margin-left:5px;margin-top:5px">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td>
<table border='0' cellpadding="0" cellspacing='0' width="100%">
<tr class="xl21">
<td align="left" nowrap style='font-size:11px;' colspan="<%=titleSpan%>"><b><%=subtab1%></b> - COB <%=irHelper.formatDate(strTradeDate)%> </td>
</tr>
</table>
</td>
</tr>
<tr>
<td> </td>
</tr>
<!-- Report Processing -->
<tr>
<td>
<%=headerString%>
<%=contentString%>
</td>
</tr>
<%
}//end of if
}//end of while
}//end of if report_Ids
%>
</table>
</body>
</html> -
Hi I am using a template with a full screen video landing page but i am unable to get Vimeo to video to connect. Error message says "video format or mime type is not supported".
I have uploaded successfully to Vimeo however when published to catalyst and previewed the error message "video format or mime type is not supported." is displayed.
Is this a format issue? I should point out I am using a template from Museworld as I am not a designer or graphic artist just another noob.@Hi,
This seems to be a Firefox error:
Firefox error: video format or MME type not supported - Articulate Storyline Discussions - E-Learning Heroes
Kindly check if you are able to view the video on Vimeo.
Also, try using another browser.
Hope it helps,
Sonam -
When I open a link like this:
http://video.gazzetta.it/puntata-milan-kaka-fa-fuori-faraone/4494065a-13b0-11e3-a11e-38d7c867cc00
I can't see the video content and I get this error message: video format or MIME type is not supported
I have adobe flash updated
I tried to reset firefox
I have vlc installed
I can correctly see this link with internet explorer. This is a PARADOX!
Can somebody help me?I see that message when the Flash plugin is disabled.<br />
If the Flash plugin is enabled or set to click-to-play then a Flash player plays the video.<br />
Otherwise a video tag is created with a link to an m3u8 stream that Firefox apparently doesn't support.
You can try to disable all other plugins that deal with media files (start with VLC) to see if that helps. -
No video with supported formate and mime type found
I am able to view videos on all but 1 website: http://www.start-american-sign-language.com/free-sign-language-asl1.html
When I view that page, the video box only shows the x with "no video with supported formate and mime type found" being displayed.
I have updated to the most recent palemoon (25.3.0) and have the following plugins installed
DRM 9.0.0.4503
Shockwave flash 16.0.0.305
Silverlight 5.1.30514.0
VLC Web Plugin 2.2.0.0
Windows media Player Dynamic Link LIbrary 3.0.2.629
I have cleared my cache and cookies, and am unable to view the video in question. If I go to https://www.youtube.com/html5, it indicates that I have an operable Webelement player and Web VP8, and all others are exclamation points.
Does anyone know why I can't watch the (mp4) video(s) in question? I have turned up no viable solutions using the forums or google.
Thanks!This happens when there is no support in your Windows XP version to play any of the media file formats that the website offers with the HTML5 media player (i.e. not a Flash player is used, but a video tag).
That are MP4 files with type="video/mp4"
*VLC shows: Codec: H264 - MPEG-4 AVC (part 10) (avc1)
You might be out of luck on Windows XP and your only option would be to use an external media player and paste the links in its location field. -
Hello all!
I am desparate for a solution. I am testing my site on Firefox and Explorer and still no sign of a functional video yet.
Firefox: I get the error: No video with supported format and MIME type found.
Explorer: I just get a distorted layout.
Here is the code I am working on:
<table id="Table_01" width="480" height="801" border="0" cellpadding="0" cellspacing="0">
<tr>
<td colspan="6">
<img src="images/Video_01.jpg" width="480" height="114" alt=""></td>
</tr>
<tr>
<td rowspan="3">
<img src="images/Video_02.jpg" width="52" height="486" alt=""></td>
<td colspan="4">
<video controls width="376" height="221">
<source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).mp4" type="Video/Mp4"/>
<source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).webm" type="Video/WebM"/>
<source src="C:\Users\aalmeida\Videos\AEMC PEL 103 6 Channel, Power & Energy Logger - with Display (Part 1).oggtheora.ogv" type="Video/Ogg"/>
</video>
Please tell me that there is something missing in the code. I have spent a lot of time uninstalling-updating Firefox plugins, added MIME types in the Internet Information Manager (I'm on Windows 7)
and seriuously hit a dead end with this!
Any advice would be muchly appreciated!!!
Thanks
~LAAs Jon said, you must declare the page as HTML5.
And your server may not be set up to deliver video as a binary file if it is an .OGG file. I have not seen this problem with .MP4 or .M4V in the past, but every server is a little different.
To add a MIME type, you need to change your .htaccess file on an Apache server thusly:
AddType audio/ogg .oga
AddType video/ogg .ogv
AddType application/ogg .ogg
AddHandler application-ogg .ogg .ogv .oga
Additionally, MIME types can usually be changed on a server's Control Panel. One can also ask one's hosting provider to do this as well.
Firefox makes it necessary to use OGG files. Webkit-based browsers will deal with .M4V or .MP4 and I understand Internet Exploder will work with the latter two as well. -
How to check if filetype or MIME type is supported on windows phone 8 or above ?
Hi,
I want to write a simple functionality to know if filetype/MIME type is supported on device.
This function will take filetype (e.g. pdf) and MIME type (e.g. application/pdf) as input parameter and returns true or false according to result.
I searched for sample with this functionality but couldn't get one. If anyone have any idea or sample for this, that will be a great help.
Thanks in advance !
Regards,
Anurag
Anurag_24Hi Anurag,
>>I want to write a simple functionality to know if filetype/MIME type is supported on device.
It seems like that there are some misunderstanding here, if a filetype can be opened by an app, it does not mean that the OS supports this type, it should be in application level.
I think you expect that there are some places to store all supported filetype/mime type in OS, but I've not heard that the OS forced an application to register supported filetype/mims type.
So your idea is good, but firstly, as far as I know, there is no such API to retrieve all available file types, secondly, even if there are some ways, they should not get all information you expected.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi everyone!
I was just wondering what are the supported types (specifically mime types) that the current j2me wtk supports. Can anyone tell me what are these types?
Actually I am having a problem in playing a file in 3gp format (3pg file extension) on an emulator. It can't seem to create a player for "video/3gpp" type. Can anyone tell me how to get around this problem? It would be greatly appreciated.
Here is my code snippet....
try {
if ( player == null ) {
if (true/*url.startsWith("resource:")*/) {
//InputStream ins = getClass().getResourceAsStream(url.substring(9));
System.out.println("Creating player");
InputStream ins = getClass().getResourceAsStream("/video/test.3gp");
player = Manager.createPlayer(ins, "video/quicktime");
//player = Manager.createPlayer("file://video/test.3gp");
else {
player = Manager.createPlayer(url);
player.addPlayerListener(this);
System.out.println("Realizing...");
player.realize();
}catch(Exception e) {
e.printStackTrace();
System.out.println("Realize error!!!");
It compiles fine but when I run the code, it throws an error that it cannot create a player for video/3gpp...
Thanks!IT seem that emulator does not support video/3gpp
-
50L4300 TV MIME Type Not Supported
My Toshiba 50L4300 TV web browser is having problems with some web pages and shows such error MIME Type Not Supported. Can not open MIME type resource. It has Software 7.2.67.32.01.1 Jul 02 2014. MBOOT Version: 00467596.
Any idea why do I have this error? please find enclosed pictures.
Attachments:
1.JPG 22 KB
2.JPG 29 KBThe TV doesn't have support for Flash content. Flash is a third-party plugin available for many web browsers. I'm sorry.
- Peter -
Hi all,
I'm trying to display an excel spreadsheet from within a jsp in a portlet over wsrp.
Whenever I make a request from the consumer, I get the error:
java.lang.IllegalArgumentException: MIME type [application/vnd.ms-excel] is not supported by the consumer/portal. Supported types(s) is(are) [ text/html text/xml application/xml application/xhtml+xml text/plain image/png */* ].
and looking at the wsrp request sent over by the consumer, the mimeTypes it says it supports are:
<v1:markupParams>
<v1:secureClientCommunication>false</v1:secureClientCommunication>
<v1:locales>en-GB</v1:locales>
<v1:locales>en</v1:locales>
<v1:mimeTypes>text/html</v1:mimeTypes>
<v1:mimeTypes>text/xml</v1:mimeTypes>
<v1:mimeTypes>application/xml</v1:mimeTypes>
<v1:mimeTypes>application/xhtml+xml</v1:mimeTypes>
<v1:mimeTypes>text/plain</v1:mimeTypes>
<v1:mimeTypes>image/png</v1:mimeTypes>
<v1:mimeTypes>*/*</v1:mimeTypes>
<v1:mode>wsrp:view</v1:mode>
My question is how do I get my consumer to support additional mimetypes?
I am using WLP 10 MP1.
ThanksThis can be solved in different ways.
1) You can use custom data transfer.please go through the below link
http://edocs.beasys.com/wlp/docs81/wsrp/custxfer.html
2) Use resource url tag library in your view on producer.
3) User resource proxy servlet on Consumer.
<!-- Proxy servlet to serve resources from producers -->
<servlet>
<servlet-name>com.bea.wsrp.consumer.resource.ResourceProxyServlet</servlet-name>
<servlet-class>com.bea.wsrp.consumer.resource.ResourceProxyServlet</servlet-class>
<init-param>
<param-name>resourceHeaderFilter</param-name>
<param-value>com.bea.wsrp.consumer.resource.CustomResourceHeaderFilter</param-value>
</init-param>
</servlet>
CustomResourceHeaderFilter.java:
package com.bea.wsrp.consumer.resource;
//import com.bea.p13n.util.debug.*;
import com.bea.wsrp.consumer.resource.ResourceHeaderFilter;
import com.bea.wsrp.consumer.resource.ResourceHeaders;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.ServletContext;
import java.util.*;
public class CustomResourceHeaderFilter implements ResourceHeaderFilter
private static final HashSet requestHeadersToSkip = new HashSet();
// Debug
//private static final Debug debug =Debug.getInstance(DefaultResourceHeaderFilter.class);
private static final Logger LOGGER = LoggerHelper.getLogger(CustomResourceHeaderFilter.class);
// By default, the following request headers will not be proxied private static final HashSet requestHeadersToSkip = new HashSet();
static
//requestHeadersToSkip.add("get");
//requestHeadersToSkip.add("post");
//requestHeadersToSkip.add("host");
//requestHeadersToSkip.add("cookie");
//requestHeadersToSkip.add("expect");
public ResourceHeaders getPassThroughHeaders(HttpServletRequest request, ServletContext context, String url)
//request.getSession().getId()
ResourceHeaders passThroughHeaders = new ResourceHeaders(); List passThroughValues;
// All headers
Enumeration headerNames = request.getHeaderNames();
while(headerNames.hasMoreElements())
String name = (String) headerNames.nextElement();
if(requestHeadersToSkip.contains(name.toLowerCase()))
continue;
passThroughValues = new LinkedList();
Enumeration values = request.getHeaders(name);
while(values.hasMoreElements())
String value = (String) values.nextElement();
LOGGER.info("[Sending] " + name + ": " + value);
passThroughValues.add(value);
if (passThroughValues.size() > 0)
passThroughHeaders.addHeader(name, passThroughValues);
return passThroughHeaders;
} -
MIME-TYPE is stored incorrectly sometimes, browsers can't display html content
Our company is switching from Netscape Communicator to Internet Explorer 5.5 . This resulted sometimes in html-documents which could not be opened in netscape anymore, but caused the save-as dialogue box to pop-up.
Analysis of this problem, with the aid of Oracle Support, showed some html-documents were stored in WWV_DOCUMENT with mime-type application/octer-stream. This is a mime type which should trigger the save-as pop-up dialogue in browsers. Netscape acts accordingly, but IE does display the content normally.
The following events cause this problem:
1. create a html document using a microsoft office product (word/excel)
2. DON'T close the document in the office application
3. Use the portal wizard to upload the file to a content area
4. Use table WWV_THINGS and WWV_DOCUMENT and see mime-type isn't text/html but application/octet-stream
5. IE shows the file, NN wants to save it.
The workaround to this problem is to close the file in MSOffice before uploading it.
Oracle Development confirmed it's the browser which sends this incorrect mime-type, and portal just stores this type. It seems this mime-type is overruling the extension to mime-type mapping in the configuration of Apache, using AddType or the file mime.types.
So the mime-types defined in apache are only used outside mod_plsql, that is, when files from the filesystem of the webserver itself are used.
When uploading a zip-file, and unzipping it in the database, all files get the right mime-type. It seems in this situation the mime-type is determined by looking either at the file-extention or the magic bits.
Oracle says it's a microsoft bug, so I'll have to ask Bill for a fix.
They are probably right, and I think I could reproduce this using CGI-scripting without modplsql and portal.
But:
It seems not logically to me that it depends on the method of uploading files (single files, or zipped files) which method of mime-type determination is used.
Furthermore, I find it strange that it depends on the storage location of the file (database or filesystem) which mime-type is presented at the user.
I'd like to hear your opinions about this
Regards,
Ton HaverYou want to be using <html:link forward="YOUR_FORWARD"> only when you want to forward to static elements and not elements that require actions. So in index.jsp, since you just want to forward to a static jsp page (allarticle.jsp), you can use
<html:link forward="show">Show All forum</html:link>But since you want your "one forum" link to populate a session attribute BEFORE loading /jsp/loveforum.jsp, you need
<html:link action="article">one forum</html:link>The reason it's not working now is because you're accessing a session attribute that isn't populated becuase you link to the page statically and it never gets the value of "list" actually stored in the session.
The reason it works when you change your forward element is because it calls the action that saves "list" into your session. -
How to restrict uploading files by mime type?
Hi,
I have been searching the forum (and Google) looking for tips on how to ensure users can only upload files of specific formats (Word, PDF, etc) for specific document types as defined within the application (e.g. Curriculum Vitae (Word), Copy of Transcripts (PDF)).
While I have used this research to start work on a server-side solution, I would like to know if there is an apex-friendly way to "validate" a file-browse item based on mime-type.
Has anyone else had to address this?
TedHi,
I would like to know if there is an apex-friendly way to "validate" a file-browse item based on mime-typeHow about, you create a check constraint on your MIMETYPE column. something similar to this:
alter table "MY_TABLE" add constraint
"MY_TABLE_CON" check ( "MIMETYPE" = 'application/pdf' or "MIMETYPE" = ......)Or you can use this plugin, provided using browsers supporting HTML 5:
http://www.theapexfreelancer.com/apex/f?p=APEXFREELANCER:FILE_UPLOAD:0
For friendly,
Please check error handling :
http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-1/
Best Regards,
Fateh -
How to determine the MIME types of the files?
I'm making an application, in which I've to upload the files to the database. Now I want to insert into the database the MIME type of the files. Now how can I know that which type of the file is having which MIME type?
where can I get the list of all supported MIME types?
Even if I get the list, then every time I update the file in the database, so every time I have to check the file extension and then insert the MIME type...
this seems to be a tedioius job..
Is there any simple way to do this?I could ask "supported by what?" but I assume you will
be the one supporting them. Here's a link to the
latest list of registered MIME types.HERE's the link...
ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/media-types -
I am trying to invoke the SharePoint Rest Api using HTML page. I have included the Access Control Allow Origin to the web.config file. I am getting Readty State 4 and
Status Success but still I am getting the below error.
Refused to execute script from 'http://<server>/_api//web/lists?callback=jQuery172045857910416089_1430217181282&_=1430217363882' because its MIME
type ('application/atom+xml') is not executable, and strict MIME type checking is enabled.
<script>
$(document).ready(function () {
$("#KMPDiscussions").click(function () {
//$.support.cors = true;
$.ajax({
url: "http://<server>/_api//web/lists",
dataType: "jsonp",
type: "GET",
method: "GET",
contentType: "application/javascript",
headers: {
"content-type":
"application/json;odata=verbose",
"accept": "application/json;odata=verbose",
success: function onSuccess(data) {
alert("Inside Alert");
error: function onError(data){
alert("Error: "
+ data);
</script>
It always hits the error on callback.
Is there any other way that I can invoke SharePoint Rest Api from a Cross Domain. Please Help.Hi Chris,
Thanks for the reply,Here iam using different files to be uploaded in library.
please find the below snapshot of json response and ULS logs.
12/22/2013 18:31:15.02 w3wp.exe (0x3338) 0x401C SharePoint Foundation Files
abq2i High Could not get DocumentContent row: 0x80004005. 79f7629c-4694-c026-
3349-2049178ee919
12/22/2013 18:31:15.02 w3wp.exe (0x3338) 0x401C SharePoint Foundation Files
aiv4w Medium Spent 0 ms to bind -1 byte file stream 79f7629c-4694-c026-3349-
2049178ee919
12/22/2013 18:31:15.02 w3wp.exe (0x3338) 0x401C SharePoint Foundation Files
aise3 Medium Failure when fetching document. 0x80070012 79f7629c-4694-c026-
3349-2049178ee919
12/22/2013 18:31:15.39 w3wp.exe (0x3338) 0x0D4C SharePoint Foundation
Database ab1a9 High Failed to get document content data.
System.ComponentModel.Win32Exception (0x80004005): Cannot complete this function at
Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd, Object
ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)
79f7629c-76ab-c026-3349-2c9132b13e9a
12/22/2013 18:31:15.39 w3wp.exe (0x3338) 0x4184 SharePoint Foundation
Database ab1a9 High Failed to get document content data.
System.ComponentModel.Win32Exception (0x80004005): Cannot complete this function at
Microsoft.SharePoint.SPSqlClient.GetDocumentContentRow(Int32 rowOrd, Object
ospFileStmMgr, SPDocumentBindRequest& dbreq, SPDocumentBindResults& dbres)
79f7629c-76ab-c026-3349-281167b6cd09
Thanks again,
Naresh.
Maybe you are looking for
-
Please see the program below, //====================================================== public class MainTest { public static void MyTestTask4_2(){ long rep=20000000; final CountDownLatch latch=new CountDownLatch(4);
-
Email photos as attachment not embedded
I apologise, I am sure this has been asked many times, but I cannot find the answer.... Using gmail is it possible to email photo as a jpeg attachment so the recipient can save it rather than embedded?
-
Hi, I am working with a report in which i want to display req.quantity field. If the quantity is -ve then i am getting the -ve sign in report o/p. but when i am printing this in a script i am not getting the -ve sign. How to display the sign in scrip
-
Just out of curiousity, what databases do you guys run, MySQL, Oracle, MSsql ? Other?
-
Imported music from CD's sounds like an auditorium??
Hi Guys, I thought I would ask in this forum as well as you guys rock! I have imported a number of CD's into itunes and they come out a bit echo-y, like the performance is in an auditorium. Have I messed up one of my settings? I have tried messing ar