<?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>StudyJava.org &#187; Blob to String</title>
	<atom:link href="http://studyjava.org/tag/blob-to-string/feed" rel="self" type="application/rss+xml" />
	<link>http://studyjava.org</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Mon, 05 Apr 2010 11:49:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Convert String to Blob and Blob to String</title>
		<link>http://studyjava.org/client-side-scripts/convert-string-to-blob-and-blob-to-string</link>
		<comments>http://studyjava.org/client-side-scripts/convert-string-to-blob-and-blob-to-string#comments</comments>
		<pubDate>Mon, 23 Nov 2009 15:14:37 +0000</pubDate>
		<dc:creator>rathi</dc:creator>
				<category><![CDATA[Client Side  Scripts]]></category>
		<category><![CDATA[Blob to String]]></category>
		<category><![CDATA[Convert String to Blob]]></category>
		<category><![CDATA[String to Blob]]></category>

		<guid isPermaLink="false">http://studyjava.org/?p=313</guid>
		<description><![CDATA[Convert String to Blob String data = &#8220;hello world&#8221;; java.sql.Blob blob = org.hibernate.Hibernate.createBlob(data.getBytes()); Convert Blob to String byte[] bdata = blob.getBytes(1, (int)blob.length()); String data1 = new String(bdata); if the length of blob exceeds the maxvalue for the int, then u can use CLOB format.To store large data we can use CLOB format and to store [...]]]></description>
			<content:encoded><![CDATA[<p>Convert String to Blob</p>
<p>String data = &#8220;hello world&#8221;;<br />
java.sql.Blob blob = org.hibernate.Hibernate.createBlob(data.getBytes());</p>
<p>Convert Blob to String</p>
<p>byte[] bdata = blob.getBytes(1, (int)blob.length());<br />
String data1 = new String(bdata);</p>
<p>if the length of blob exceeds the maxvalue for the int, then u can use CLOB format.To store large data we can use CLOB format and to store an image, use a BLOB data types.</p>
<div id="st0000000001" class="st-taf"><script src="http://taf.socialtwist.com:80/taf/js/shoppr.core.js?id=0000000001"></script><img style="border:0;margin:0;padding:0;" src="http://tellafriend.socialtwist.com:80/wizard/images/tafbutton_blue16.png" onmouseout="hideHoverMap(this)" onmouseover="showHoverMap(this, '0000000001', 'http%3A%2F%2Fstudyjava.org%2Fclient-side-scripts%2Fconvert-string-to-blob-and-blob-to-string', 'Convert+String+to+Blob+and+Blob+to+String')" onclick="cw(this, {id:'0000000001',link: 'http%3A%2F%2Fstudyjava.org%2Fclient-side-scripts%2Fconvert-string-to-blob-and-blob-to-string', title: '+Convert+String+to+Blob+and+Blob+to+String+' })"/></div>]]></content:encoded>
			<wfw:commentRss>http://studyjava.org/client-side-scripts/convert-string-to-blob-and-blob-to-string/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

