<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Blog @ SIB Visions &#187; Dropbox</title>
	<atom:link href="http://blog.sibvisions.com/tag/dropbox/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.sibvisions.com</link>
	<description>Blog @ SIB Visions</description>
	<lastBuildDate>Mon, 13 Apr 2026 09:47:01 +0000</lastBuildDate>
		<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A DropboxStorage as X-mas present</title>
		<link>https://blog.sibvisions.com/2014/12/24/dropboxstorage/</link>
		<comments>https://blog.sibvisions.com/2014/12/24/dropboxstorage/#comments</comments>
		<pubDate>Wed, 24 Dec 2014 13:16:59 +0000</pubDate>
		<dc:creator>rjahn</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Dropbox]]></category>
		<category><![CDATA[JVx]]></category>

		<guid isPermaLink="false">http://blog.sibvisions.com/?p=3469</guid>
		<description><![CDATA[Merry X-mas  
We have a little present for you. It's a connector for Dropbox.
The source code is available here.
It's a full IStorage implementation and allows CRUD operations to your Dropbox account. We use it for sharing dynamicly created reports and as document archive. It's very useful because your application doesn't need a mobile client [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Merry X-mas</strong> <img src='https://blog.sibvisions.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>We have a little present for you. It's a connector for <a href="http://www.dropbox.com/">Dropbox</a>.</p>
<p>The source code is available <a href="https://github.com/rjahn/DropboxStorage">here</a>.</p>
<p>It's a full IStorage implementation and allows CRUD operations to your Dropbox account. We use it for sharing dynamicly created reports and as document archive. It's very useful because your application doesn't need a mobile client to exchange data with the backend.</p>
<p>If your secretary creates the management report (Word, Excel or Pdf), simply modify or read it via Dropbox. It's really simple because Word and Excel are available for mobile devices. Both tools have a built-in Dropbox support and thus makes it easy to access files.</p>
<p><strong>How to use the storage?</strong></p>
<p>Currently, we don't have a pre-compiled lib, but simply clone the repository and use the ANT build to create your own lib.</p>
<p>It's simple to integrate the storage in your application:</p>
<div class="codesnip-container" >
<div class="java codesnip" style="font-family:monospace;"><span class="kw1">public</span> DropboxStorage getFiles<span class="br0">&#40;</span><span class="br0">&#41;</span> <span class="kw1">throws</span> <span class="kw3">Exception</span><br />
<span class="br0">&#123;</span><br />
&nbsp; &nbsp; DropboxStorage storage <span class="sy0">=</span> <span class="br0">&#40;</span>DropboxStorage<span class="br0">&#41;</span>get<span class="br0">&#40;</span><span class="st0">&quot;files&quot;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p>&nbsp; &nbsp; <span class="kw1">if</span> <span class="br0">&#40;</span>storage <span class="sy0">==</span> <span class="kw2">null</span><span class="br0">&#41;</span><br />
&nbsp; &nbsp; <span class="br0">&#123;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; storage <span class="sy0">=</span> <span class="kw1">new</span> DropboxStorage<span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; storage.<span class="me1">setAccessToken</span><span class="br0">&#40;</span>SessionContext.<span class="me1">getCurrentSessionConfig</span><span class="br0">&#40;</span><span class="br0">&#41;</span>.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span class="me1">getProperty</span><span class="br0">&#40;</span><span class="st0">&quot;/application/dropbox/accessToken&quot;</span><span class="br0">&#41;</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; storage.<span class="me1">setFileType</span><span class="br0">&#40;</span>FileType.<span class="me1">All</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span class="co1">//use &quot;flat&quot; style</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; storage.<span class="me1">setRecursive</span><span class="br0">&#40;</span><span class="kw2">true</span><span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; storage.<span class="me1">open</span><span class="br0">&#40;</span><span class="br0">&#41;</span><span class="sy0">;</span></p>
<p>&nbsp; &nbsp; &nbsp; &nbsp; put<span class="br0">&#40;</span><span class="st0">&quot;files&quot;</span>, storage<span class="br0">&#41;</span><span class="sy0">;</span><br />
&nbsp; &nbsp; <span class="br0">&#125;</span></p>
<p>&nbsp; &nbsp; <span class="kw1">return</span> storage<span class="sy0">;</span><br />
<span class="br0">&#125;</span></div>
</div>
<p>Before the storage will work, prepare your dropbox account to get an access token. It's not tricky and everything is <a href="https://www.dropbox.com/developers/core/start/java">documented</a>.</p>
<p>There are some examples available as <a href="https://github.com/rjahn/DropboxStorage/blob/master/test/com/sibvisions/apps/persist/TestDropboxStorage.java">JUnit tests</a>.</p>
<p>A <strong>simple Dropbox screen</strong> could look like this one:</p>
<div id="attachment_3479" class="wp-caption aligncenter" style="width: 310px"><a href="http://blog.sibvisions.com/wp-content/uploads/2014/12/JVx_dropbox.png" rel="lightbox[3469]"><img src="http://blog.sibvisions.com/wp-content/uploads/2014/12/JVx_dropbox-300x193.png" alt="Dropbox access with JVx" title="JVx_dropbox" width="300" height="193" class="size-medium wp-image-3479" /></a><p class="wp-caption-text">Dropbox access with JVx</p></div>
]]></content:encoded>
			<wfw:commentRss>https://blog.sibvisions.com/2014/12/24/dropboxstorage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
