Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 267 results for
mimetype
- Page 1
Re: PHP curl not saving as correct mimetype
Programming
Web Development
10 Years Ago
by fheppell
Is there any way of setting the type of file via PHP. The file is correctly downloading and contains everything it should but it doesn't have the
mimetype
of a JPG
Simple Http Server
Programming
Software Development
13 Years Ago
by pkty31
…; } /** * Basic constructor. */ public Response(String status, String
mimeType
, InputStream data) { this.status = status; this.
mimeType
=
mimeType
; this.data = data; } /** * Convenience method that makes…
Moved my PHPBB forum from shared to VPS - now I have serious issue
Programming
Web Development
10 Years Ago
by techman41973
…-1'); } } else { header('Content-Disposition: ' . ((strpos($attachment['
mimetype
'], 'image') === 0) ? 'inline' : 'attachment') . '; ' …htmlspecialchars_decode($attachment['real_filename']))); if ($is_ie8 && (strpos($attachment['
mimetype
'], 'image') !== 0)) { header('X-Download-Options: …
problem with understanding ajax basics
Programming
Web Development
15 Years Ago
by omesanni
…false; } } } } return this.req; }; this.setMimeType = function(
mimeType
) { this.
mimeType
=
mimeType
; }; //event handler for sending request this.doReq = function() { if….method, this.url, this.async); if (this.
mimeType
) { try { req.overrideMimeType(this.
mimeType
); } catch (e) { // couldn't override…
Audio Pop Up Window
Programming
Web Development
15 Years Ago
by jproducer
…aif if (theExtension.toLowerCase() == "wav") {
mimeType
= "audio/x-wav"}; if (theExtension.toLowerCase()… == "aif") {
mimeType
= "audio/x-aiff"}; if (theExtension.toLowerCase…() == "wma") {
mimeType
= "audio/x-ms-wma"}; if (…
Retrieving values out of complex XML schema
Programming
Software Development
14 Years Ago
by k1robert
…>128705</common:Size> <common:
MimeType
>application/pdf</common:
MimeType
> <common:FileName>5254_091211-hp…>237683</common:Size> <common:
MimeType
>application/pdf</common:
MimeType
> <common:FileName>5254_1000a_091214170715217.pdf…
Android Native - Play videos using VideoView
Programming
Mobile Development
2 Years Ago
by dimitrilc
…(ALL_CODECS) for (codecInfo in codecList.codecInfos){ for (
mimeType
in codecInfo.supportedTypes){ Log.d(TAG,
mimeType
) } } } } **activity_main.xml** <?xml version="1…
JSP download file
Programming
Web Development
15 Years Ago
by narayanabhilash
…(); ServletContext context = getServletConfig().getServletContext(); String
mimetype
= context.getMimeType( filename ); // //…and go! // // response.setContentType( (
mimetype
!= null) ?
mimetype
: "application/octet-stream" …
Reading Binary Data in Java
Programming
Software Development
14 Years Ago
by syum
…formDataLength = request.getContentLength(); // get content length String
mimeType
= request.getContentType(); byte[] buf2 = new byte[formDataLength…;Writer error: " + e.getMessage()); } if (
mimeType
.startsWith("text/") || formDataLength == -1) { …
Re: Retrieving values out of complex XML schema
Programming
Software Development
14 Years Ago
by k1robert
… = attachment.Element(ns1 + "Size").Value, _ .
MimeType
= attachment.Element(ns1 + "
MimeType
").Value, _ .PaperSize = attachment.Descendants(ns1 + "…
image resize prob
Programming
Web Development
14 Years Ago
by ajijacobm
…encoderParams); } private System.Drawing.Imaging.ImageCodecInfo getEncoderInfo(string
mimeType
) { // Get image codecs for all image …0; i < codecs.Length; i++) if (codecs[i].
MimeType
==
mimeType
) return codecs[i]; return null; } } } [/code]…
Problem with a C# program
Programming
Software Development
14 Years Ago
by spawn2004
…img.Save(path, jpegCodec, encoderParams); } private ImageCodecInfo getEncoderInfo(string
mimeType
) { // Get image codecs for all image formats ImageCodecInfo[]… < codecs.Length; i++) if (codecs[i].
MimeType
==
mimeType
) return codecs[i]; return null; } private void Postcard_Load…
Java Crawler - Mysterious behavior
Programming
Software Development
13 Years Ago
by blur0224
…URL responseURL = null; private int responseCode = -1; private String
MIMEtype
= null; private String charset = null; private Object content =…; } /** Get the MIME type. */ public String getMIMEType( ) { return
MIMEtype
; } }[/CODE] [CODE]WebFile file = new WebFile( "http://example.com…
Re: how to insert Binary data into sql server 2008
Programming
Software Development
12 Years Ago
by kvprajapati
…=sa"); string sql="INSERT INTO Picture (PictureBinary,
MimeType
,IsNew) Values (@PictureBinary,@
MimeType
,@IsNew)"; SqlCommand cmd = new SqlCommand(sql, conn…;,SqlDbType.Image,pict.Length).Value=pict; cmd.Parameters.Add("@
MimeType
",SqlDbType.VarChar,50).Value=pname; cmd.Parameters.Add("…
not displaying the first image from the database
Programming
Software Development
15 Years Ago
by adamjw3
…").ConnectionString) 9 10 Const SQL As String = "SELECT [
MIMEType
], [ImageData] FROM [Property] WHERE [PropertyID] = @PropertyID" …If myReader.Read Then 18 Response.ContentType = myReader("
MIMEType
").ToString() 19 Response.BinaryWrite(myReader("ImageData"))…
problem displaying image
Programming
Web Development
15 Years Ago
by adamjw3
…").ConnectionString) 9 10 Const SQL As String = "SELECT [
MIMEType
], [ImageData] FROM [Property] WHERE [PropertyID] = @PropertyID" …If myReader.Read Then 18 Response.ContentType = myReader("
MIMEType
").ToString() 19 Response.BinaryWrite(myReader("ImageData"))…
RDLC error when render report ()
Programming
Software Development
15 Years Ago
by am_dumb
…); string reportType = "PDF"; string
mimeType
; string encoding; string fileNameExtension; string deviceInfo =…the report localReport.Render(reportType, deviceInfo, out
mimeType
, out encoding, out fileNameExtension, out streams, out …
Disable content-copying of ReportViewer-generated pdf file
Programming
Software Development
14 Years Ago
by stoymigo
…PDF"; Warning[] warnings; string[] streamids; string
mimeType
; string encoding; string extension = ""; …= repVwr.LocalReport.Render( sReportFormatType, null, out
mimeType
, out encoding, out extension, out streamids, out…
read html content from url
Programming
Software Development
14 Years Ago
by ndeniche
…URL responseURL = null; private int responseCode = -1; private String
MIMEtype
= null; private String charset = null; private Object content = … type != null ) { final String[] parts = type.split( ";" );
MIMEtype
= parts[0].trim( ); for ( int i = 1; i < parts…
JSON to MySQL
Programming
Software Development
12 Years Ago
by scrivomcdivo
…-rw-rw-", "FileType": "JPEG", "
MIMEType
": "image/jpeg", "JFIFVersion": 1.01…-rw-rw-", "FileType": "JPEG", "
MIMEType
": "image/jpeg", "JFIFVersion": 1.01…
JSON to MySQL with PHP
Programming
Web Development
12 Years Ago
by scrivomcdivo
…-rw-rw-", "FileType": "JPEG", "
MIMEType
": "image/jpeg", "JFIFVersion": 1.01…-rw-rw-", "FileType": "JPEG", "
MIMEType
": "image/jpeg", "JFIFVersion": 1.01…
how to insert Binary data into sql server 2008
Programming
Software Development
12 Years Ago
by Mubusher
… is Startyeed"); break; } else { //MessageBox.Show(files[i]); FileType =
MimeType
(files[i]); //MessageBox.Show(FileType); PictureName = FileName(files[i]); //MessageBox…
An ASP.Net generted KML file - how to properly open it on Android
Programming
Mobile Development
12 Years Ago
by screwfacecapone
…: [CODE] <staticContent> <mimeMap fileExtension=".kml"
mimeType
="application/vnd.google-earth.kml+xml" /> <…;mimeMap fileExtension=".kmz"
mimeType
="application/vnd.google-earth.kmz" /> </staticContent…
How do i print byte array without saving in system.(web)
Programming
Software Development
10 Years Ago
by Anto_1
….Refresh(); Warning[] warnings = null; string[] streamIds = null; string
mimeType
= string.Empty; string encoding = string.Empty; string extension = string…[] bytes = rptvw1.LocalReport.Render(filetype, null, out
mimeType
, out encoding, out extension, out streamIds, out warnings);
Re: Using webservice
Programming
Web Development
9 Years Ago
by almostbob
…;<?php echo $YourArray['filename']; ?></a> the
mimetype
is still wrong If you are accepting multiple mimetypes from… always if/else or switch/case through `$YourArray['
mimetype
']` and echo the correct
mimetype
into the link sample generated pdf, as html…
Re: Take screenshot and save it as jpg
Programming
Software Development
13 Years Ago
by SpecialForce
… j = 0; j < num; ++j) { if( wcscmp(pImageCodecInfo[j].
MimeType
, format) == 0 ) { *pClsid = pImageCodecInfo[j].Clsid; free(pImageCodecInfo); return j… j = 0; j < num; ++j) { if( wcscmp(pImageCodecInfo[j].
MimeType
, format) == 0 ) { *pClsid = pImageCodecInfo[j].Clsid; free(pImageCodecInfo); return j…
Problem deserializing objects from multiple classes
Programming
Software Development
18 Years Ago
by skier17
…;did:Component> <did:Descriptor> <did:Statement
mimeType
="text/xml"> <DIA> <DescriptionMetadata…
lighttpd.conf with rails
Programming
Web Development
17 Years Ago
by pty
…-environment" => ( "RAILS_ENV" => "development" ) ) ) )
mimetype
.assign = ( ".css" => "text/css", "…
problem with dialogbox save/open/cancel jsp in IE
Programming
Web Development
16 Years Ago
by devsa
… not working, i verify the IE configuration also. I add
mimetype
, content type .... :confused: my link is like this: <a…
File Download problem
Programming
Web Development
15 Years Ago
by infernodeep
… mime type // itself, which would only work if you have
Mimetype
or Fileinfo extensions // installed on server. $allowed_ext = array ( // archives 'zip…
1
2
3
5
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC