This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v20.6
WEB SEND BLOB
|
WEB SEND BLOB ( blob ; type ) | ||||||||
Parameter | Type | Description | ||||||
blob | BLOB |
![]() |
BLOB to send to the browser | |||||
type | String |
![]() |
Data type of the BLOB | |||||
The WEB SEND BLOB command allows you to send blob to the browser.
The type of data contained in the BLOB is indicated by type. This parameter can be one of the following types:
Note: For more information about MIME types, refer to the page: http://www.iana.org/assignments/media-types.
Here is a list of the most common MIME types:
Extension | Mime/Type |
.htm | text/html |
.html | text/html |
.shtml | text/html |
.shtm | text/html |
.css | text/css |
application/pdf | |
.rtf | application/rtf |
.ps | application/postscript |
.eps | application/postscript |
.hqx | application/mac-binhex40 |
.js | application/javascript |
.json | application/json |
.txt | text/plain |
.text | text/plain |
.gif | image/gif |
.jpg | image/jpeg |
.jpeg | image/jpeg |
.jpe | image/jpeg |
.jfif | image/jpeg |
.pic | image/pict |
.pict | image/pict |
.tif | image/tiff |
.tiff | image/tiff |
.mpeg | video/mpeg |
.mpg | video/mpeg |
.mov | video/quicktime |
.moov | video/quicktime |
.aif | audio/aiff |
.aiff | audio/aiff |
.wav | audio/wav |
.ram | audio/x-pn-realaudio |
.sit | application/x-stuffit |
.bin | application/x-stuffit |
.xml | application/xml |
.z | application/x-zip |
.zip | application/x-zip |
.gz | application/x-gzip |
.tar | application/x-tar |
Note: The list of MIME types supported by the 4D HTTP server is saved in the "MimeTypes.xml" file found in the following folder of the 4D application: [Contents]\Native components\HTTPServer.bundle\Contents\Resources.
The references to 4D variables and 4DSCRIPT type tags in the page are always parsed.
Refer to the example of the PICTURE TO BLOB routine.
Product: 4D
Theme: Web Server
Number:
654
Created: 4D v6.5
Renamed: 4D v13 (SEND HTML BLOB)
4D Language Reference ( 4D v20)
4D Language Reference ( 4D v20.1)
4D Language Reference ( 4D v20.2)
4D Language Reference ( 4D v20.3)
4D Language Reference ( 4D v20.4)
4D Language Reference ( 4D v20.5)
4D Language Reference ( 4D v20.6)