일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- open redirect
- ssrf
- 네이버카페
- Frida
- esbuild
- MongoDB #NoSQL #CreateUser #DropUser #mongod #mognod.conf
- 척추관협착증
- shell_gpt
- Sequoia
- NUGU
- 채팅환전사기
- 취약점
- ue4dumper
- self-signed
- react
- XSS
- 모의해킹
- CryptoJS
- 보이스피싱 #대검찰청 #명의도용 #비밀번호 #계좌번호 #공공기관 #가짜검찰청
- CJ대한통운 #쿠팡 #통관번호오류 #통관고유번호오류 #안주원팀장 #모건인베스트
- 허리디스크
- intelmac
- 로맨스스캠
- Malware Sample
- 변태는
- 중고나라
- speed-measure-webpack-plugin
- 거래사기
- 안전결제
- 많다..
Archives
- Today
- Total
annyoung
Azure blob storage SDK set Content-Type using php 본문
Can't find some example that set blob's Content-Type from official site.
Here is example code.
<?php
require_once(__DIR__ . '/autoload.php');
use MicrosoftAzure\Storage\Blob\BlobRestProxy;
use MicrosoftAzure\Storage\Blob\Models\CreateBlockBlobOptions;
// declaration variables
$connectionString = 'INPUT_YOUR_SECRET_KEY';
$containerName = 'testContainer';
$blobName = 'blob.json';
$content = '{"nopsled":"blog"}';
$blobContentType = 'application/json; application/json; charset=UTF-8';
$blobClient = BlobRestProxy::createBlobService($this->connectionString);
$options = new CreateBlockBlobOptions();
$options->setContentType($blobContentType);
$blobClient->createBlockBlob($containerName, $blobName, json_encode($content, JSON_UNESCAPED_UNICODE), $options);
// json_encode korean language using by JSON_UNESCAPED_UNICODE
'프로그래밍' 카테고리의 다른 글
개발을 잘하는 회사들 (0) | 2020.08.21 |
---|---|
ubuntu apache2+tomcat command line tool as python instead of service (0) | 2019.02.22 |
python get image from video using cv2 (VIDEOIO ERROR: V4L: can't find camera device) (0) | 2019.01.30 |
python pyodbc 설치 탐험기 (0) | 2018.06.04 |
[javascript] calculate datetime (0) | 2018.04.24 |
Comments