Skip to content

Commit 13f208a

Browse files
committed
First Commit
0 parents  commit 13f208a

File tree

3,210 files changed

+232857
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

3,210 files changed

+232857
-0
lines changed

access-oracle-databases-from-azure-web-apps-using-oci8-drivers-with-php/index.html

Lines changed: 441 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 381 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,381 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head><meta name="generator" content="Hexo 3.8.0">
4+
<meta charset="utf-8">
5+
6+
<!-- PACE Progress Bar START -->
7+
8+
<script src="https://raw.githubusercontent.com/HubSpot/pace/v1.0.2/pace.min.js"></script>
9+
<link rel="stylesheet" href="https://github.com/HubSpot/pace/raw/master/themes/orange/pace-theme-flash.css">
10+
11+
12+
13+
<!-- PACE Progress Bar START -->
14+
15+
16+
<title> accessing storage blob using sas with java | Azure OSS Developer Support</title>
17+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
18+
19+
<meta name="keywords" content="Azure StorageblobJavajava configurationSAS">
20+
21+
22+
23+
24+
<meta name="description" content="In order to access your storage blob using SAS with Java, please follow below steps - 1. Configure the SAS access service in your Blob for your storage account. Navigate to Shared access signature">
25+
<meta name="keywords" content="Azure Storage,blob,Java,java configuration,SAS">
26+
<meta property="og:type" content="article">
27+
<meta property="og:title" content=" Accessing storage blob using SAS with Java ">
28+
<meta property="og:url" content="http://azureossd.github.io/accessing-storage-blob-using-sas-with-java/index.html">
29+
<meta property="og:site_name" content="Azure OSS Developer Support">
30+
<meta property="og:description" content="In order to access your storage blob using SAS with Java, please follow below steps - 1. Configure the SAS access service in your Blob for your storage account. Navigate to Shared access signature">
31+
<meta property="og:locale" content="default">
32+
<meta property="og:image" content="http://azureossd.github.io/wp-content/uploads/2016/08/image002_20160701-212525-212522_1_thumb.png">
33+
<meta property="og:updated_time" content="2019-03-26T21:20:34.350Z">
34+
<meta name="twitter:card" content="summary">
35+
<meta name="twitter:title" content=" Accessing storage blob using SAS with Java ">
36+
<meta name="twitter:description" content="In order to access your storage blob using SAS with Java, please follow below steps - 1. Configure the SAS access service in your Blob for your storage account. Navigate to Shared access signature">
37+
<meta name="twitter:image" content="http://azureossd.github.io/wp-content/uploads/2016/08/image002_20160701-212525-212522_1_thumb.png">
38+
39+
<link rel="alternate" href="/atom.xml" title="Azure OSS Developer Support" type="application/atom+xml">
40+
41+
<link rel="icon" href="/css/images/favicon.ico">
42+
43+
<link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
44+
45+
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Montserrat:700" rel="stylesheet" type="text/css">
46+
<link href="https://fonts.googleapis.com/css?family=Roboto:400,300,300italic,400italic" rel="stylesheet" type="text/css">
47+
<link href="https://cdn.bootcss.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
48+
<style type="text/css">
49+
@font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/9749f0/00000000000000000001008f/27/l?subset_id=2&fvd=n5) format("woff2");font-weight:500;font-style:normal;}
50+
@font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/90cf9f/000000000000000000010091/27/l?subset_id=2&fvd=n7) format("woff2");font-weight:500;font-style:normal;}
51+
@font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/8a5494/000000000000000000013365/27/l?subset_id=2&fvd=n4) format("woff2");font-weight:lighter;font-style:normal;}
52+
@font-face{font-family:futura-pt;src:url(https://use.typekit.net/af/d337d8/000000000000000000010095/27/l?subset_id=2&fvd=i4) format("woff2");font-weight:400;font-style:italic;}</style>
53+
54+
<link rel="stylesheet" id="athemes-headings-fonts-css" href="//fonts.googleapis.com/css?family=Yanone+Kaffeesatz%3A200%2C300%2C400%2C700&amp;ver=4.6.1" type="text/css" media="all">
55+
<link rel="stylesheet" href="/css/style.css">
56+
57+
<script src="https://code.jquery.com/jquery-3.1.1.min.js"></script>
58+
59+
<!-- Bootstrap core CSS -->
60+
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.2/css/bootstrap.min.css">
61+
<link rel="stylesheet" href="/css/hiero.css">
62+
<link rel="stylesheet" href="/css/glyphs.css">
63+
64+
65+
<!-- Custom CSS -->
66+
<link rel="stylesheet" href="/css/my.css">
67+
<!-- Google Adsense -->
68+
69+
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
70+
<script>
71+
(adsbygoogle = window.adsbygoogle || []).push({
72+
google_ad_client: "ca-pub-0123456789ABCDEFFFFFF",
73+
enable_page_level_ads: true
74+
});
75+
</script>
76+
77+
</head>
78+
</html>
79+
<script>
80+
var themeMenus = {};
81+
82+
themeMenus["/"] = "Home";
83+
84+
themeMenus["/archives"] = "Archives";
85+
86+
</script>
87+
88+
89+
<body data-spy="scroll" data-target="#toc" data-offset="50">
90+
91+
92+
<header id="allheader" class="site-header" role="banner">
93+
<div class="clearfix container">
94+
<div class="site-branding">
95+
96+
<h1 class="site-title">
97+
98+
<a href="/" title="Azure OSS Developer Support" rel="home"> Azure OSS Developer Support </a>
99+
100+
</h1>
101+
102+
103+
104+
<nav id="main-navigation" class="main-navigation" role="navigation">
105+
<a class="nav-open">Menu</a>
106+
<a class="nav-close">Close</a>
107+
<div class="clearfix sf-menu">
108+
109+
<ul id="main-nav" class="nmenu sf-js-enabled">
110+
111+
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class href="/">Home</a> </li>
112+
113+
<li class="menu-item menu-item-type-custom menu-item-object-custom menu-item-home menu-item-1663"> <a class href="/archives">Archives</a> </li>
114+
115+
</ul>
116+
</div>
117+
</nav>
118+
119+
120+
</div>
121+
</div>
122+
</header>
123+
124+
125+
<div id="originBgDiv" style="background: #fff; width: 100%;">
126+
127+
<div style="max-height:600px; overflow: hidden; display: flex; display: -webkit-flex; align-items: center;">
128+
<img id="originBg" width="100%" alt src>
129+
</div>
130+
131+
</div>
132+
133+
<script>
134+
function setAboutIMG(){
135+
var imgUrls = "css/images/pose.jpg,https://source.unsplash.com/collection/954550/1920x1080".split(",");
136+
var random = Math.floor((Math.random() * imgUrls.length ));
137+
if (imgUrls[random].startsWith('http') || imgUrls[random].indexOf('://') >= 0) {
138+
document.getElementById("originBg").src=imgUrls[random];
139+
} else {
140+
document.getElementById("originBg").src='/' + imgUrls[random];
141+
}
142+
}
143+
bgDiv=document.getElementById("originBgDiv");
144+
if(location.pathname.match('about')){
145+
setAboutIMG();
146+
bgDiv.style.display='block';
147+
}else{
148+
bgDiv.style.display='none';
149+
}
150+
</script>
151+
152+
153+
154+
<div id="container">
155+
<div id="wrap">
156+
157+
<div id="content" class="outer">
158+
159+
<section id="main" style="float:none;"><article id="post-accessing-storage-blob-using-sas-with-java" style="width: 66%; float:left;" class="article article-type-post" itemscope itemprop="blogPost">
160+
<div id="articleInner" class="clearfix post-1016 post type-post status-publish format-standard has-post-thumbnail hentry category-template-2 category-uncategorized tag-codex tag-edge-case tag-featured-image tag-image tag-template">
161+
162+
163+
<header class="article-header">
164+
165+
166+
<h1 class="thumb" itemprop="name">
167+
Accessing storage blob using SAS with Java
168+
</h1>
169+
170+
171+
</header>
172+
173+
<div class="article-meta">
174+
175+
Posted on <a href="/accessing-storage-blob-using-sas-with-java/" class="article-date">
176+
<time datetime="2016-08-16T01:13:04.000Z" itemprop="datePublished">August 15, 2016</time>
177+
</a>
178+
179+
180+
</div>
181+
<div class="article-entry" itemprop="articleBody">
182+
183+
<pre><code>In order to access your storage blob using SAS with Java, please follow below steps -
184+
</code></pre><p>1. Configure the SAS access service in your Blob for your storage account. Navigate to Shared access signature setting as shown below - </p>
185+
<p><a href="/wp-content/uploads/2016/08/image002_20160701-212525-212522_1.png"><img src="/wp-content/uploads/2016/08/image002_20160701-212525-212522_1_thumb.png" alt="image002_20160701-212525-212522_1" title="image002_20160701-212525-212522_1"></a> </p>
186+
<p>2. Copy the Blob Service SAS URL. (This is required to access the blob) </p>
187+
<p>3. Access your Blob in your Java code as shown in below snippet - </p>
188+
<pre><code>try {
189+
HttpURLConnection httpClient = (HttpURLConnection) new URL(Copy Blob service SAS URL with container).openConnection();
190+
httpClient.setRequestMethod(“PUT”);
191+
httpClient.setDoOutput(true);
192+
httpClient.setRequestProperty(“x-ms-blob-type”, “BlockBlob”);
193+
OutputStreamWriter out = new OutputStreamWriter(httpClient.getOutputStream());
194+
out.write(“This is test”);
195+
out.close();
196+
httpClient.getInputStream();
197+
} catch (MalformedURLException e) {
198+
// TODO Auto-generated catch block
199+
e.printStackTrace();
200+
} catch (IOException e) {
201+
// TODO Auto-generated catch block
202+
e.printStackTrace();
203+
}
204+
</code></pre><p><strong>Where –</strong></p>
205+
<p>storageurl = “https://&lt;storage_account_name&gt;.blob.core.windows.net/&lt;container_name&gt;/“+file.name+“sas_content“</p>
206+
207+
208+
</div>
209+
<footer class="entry-meta entry-footer">
210+
211+
<span class="ico-folder"></span>
212+
<a class="article-category-link" href="/categories/Java/">Java</a>
213+
214+
215+
<span class="ico-tags"></span>
216+
<ul class="article-tag-list"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Azure-Storage/">Azure Storage</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Java/">Java</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/SAS/">SAS</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/blob/">blob</a></li><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/java-configuration/">java configuration</a></li></ul>
217+
218+
219+
220+
221+
222+
<div id="comment">
223+
<!-- 来必力City版安装代码 -->
224+
<div id="lv-container" data-id="city" data-uid="MTAyMC8yOTQ4MS82MDQ5">
225+
<script type="text/javascript">
226+
(function(d, s) {
227+
var j, e = d.getElementsByTagName(s)[0];
228+
229+
if (typeof LivereTower === 'function') { return; }
230+
231+
j = d.createElement(s);
232+
j.src = 'https://cdn-city.livere.com/js/embed.dist.js';
233+
j.async = true;
234+
235+
e.parentNode.insertBefore(j, e);
236+
})(document, 'script');
237+
</script>
238+
<noscript>为正常使用来必力评论功能请激活JavaScript</noscript>
239+
</div>
240+
<!-- City版安装代码已完成 -->
241+
</div>
242+
243+
244+
245+
</footer>
246+
</div>
247+
248+
249+
<nav id="article-nav">
250+
251+
<a href="/meteor-1-4-on-azure-app-services/" id="article-nav-newer" class="article-nav-link-wrap">
252+
<strong class="article-nav-caption">Newer</strong>
253+
<div class="article-nav-title">
254+
255+
Meteor 1.4 App on Azure App Services
256+
257+
</div>
258+
</a>
259+
260+
261+
<a href="/setup-single-sign-on-with-aad-using-simplesamlphp/" id="article-nav-older" class="article-nav-link-wrap">
262+
<strong class="article-nav-caption">Older</strong>
263+
<div class="article-nav-title"> Setup Single Sign On with AAD using SimpleSAMLphp </div>
264+
</a>
265+
266+
</nav>
267+
268+
269+
</article>
270+
271+
<!-- Table of Contents -->
272+
273+
<aside id="sidebar">
274+
<div id="toc" class="toc-article" style="overflow-y: scroll; max-width: 28%;">
275+
<strong class="toc-title">Contents</strong>
276+
277+
<ol class="nav">None</ol>
278+
279+
</div>
280+
</aside>
281+
</section>
282+
283+
</div>
284+
<footer id="footer" class="site-footer">
285+
286+
287+
<div class="clearfix container">
288+
<div class="site-info">
289+
&copy; 2019 Azure OSS Developer Support All Rights Reserved.
290+
291+
</div>
292+
<div class="site-credit">
293+
</div>
294+
</div>
295+
</footer>
296+
297+
298+
<!-- min height -->
299+
300+
<script>
301+
var contentdiv = document.getElementById("content");
302+
303+
contentdiv.style.minHeight = document.body.offsetHeight - document.getElementById("allheader").offsetHeight - document.getElementById("footer").offsetHeight + "px";
304+
</script>
305+
306+
<!-- Custome JS -->
307+
<script src="/js/my.js"></script>
308+
</div>
309+
<!-- <nav id="mobile-nav">
310+
311+
<a href="/" class="mobile-nav-link">Home</a>
312+
313+
<a href="/archives" class="mobile-nav-link">Archives</a>
314+
315+
</nav> -->
316+
317+
318+
<!-- mathjax config similar to math.stackexchange -->
319+
320+
<script type="text/x-mathjax-config">
321+
MathJax.Hub.Config({
322+
tex2jax: {
323+
inlineMath: [ ['$','$'], ["\\(","\\)"] ],
324+
processEscapes: true
325+
}
326+
});
327+
</script>
328+
329+
<script type="text/x-mathjax-config">
330+
MathJax.Hub.Config({
331+
tex2jax: {
332+
skipTags: ['script', 'noscript', 'style', 'textarea', 'pre', 'code']
333+
}
334+
});
335+
</script>
336+
337+
<script type="text/x-mathjax-config">
338+
MathJax.Hub.Queue(function() {
339+
var all = MathJax.Hub.getAllJax(), i;
340+
for(i=0; i < all.length; i += 1) {
341+
all[i].SourceElement().parentNode.className += ' has-jax';
342+
}
343+
});
344+
</script>
345+
346+
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
347+
</script>
348+
349+
350+
351+
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.css">
352+
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.5/jquery.fancybox.min.js"></script>
353+
354+
355+
<script src="/js/scripts.js"></script>
356+
<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
357+
<script src="/js/main.js"></script>
358+
359+
360+
361+
362+
363+
364+
365+
<div style="display: none;">
366+
<script src="https://s95.cnzz.com/z_stat.php?id=1260716016&web_id=1260716016" language="JavaScript"></script>
367+
</div>
368+
369+
370+
371+
372+
373+
374+
375+
376+
</div>
377+
378+
<a id="rocket" href="#top" class=""></a>
379+
<script type="text/javascript" src="/js/totop.js" async=""></script>
380+
</body>
381+
</html>

0 commit comments

Comments
 (0)