Re: MySQL longblob

"niksa_os" <[email protected]> Mon, 8 Apr 2002 11:55:43 +0200
Newsgroups gmane.comp.java.ejb.general
Message-ID <004201c1dee4$3e35af60$cf261dc3@z>
------=_NextPart_000_003D_01C1DEF4.50025080
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have CMP EJB and I don't know what class to use for MySQL longblob mappin=
g?
This will be deployed to WebLogic and BES5 (Borland).
I try for WebLogic with java.sql.Blob and for BES byte[], like documents sa=
id, but this doesn't work for me.

I just know that I must deliver something that servlet developer can cast t=
o byte[].

Any suggestion (anyone) how to map this column?

P.S. Sorry Ahmed I didn't explain better ;)
  ----- Original Message -----=20
  From: Aboul-Enein, Ahmed A=20
  To: [email protected]=20
  Sent: Sunday, April 07, 2002 5:31 PM
  Subject: RE: [EJB-Developer] MySQL longblob



    The following is valid for BLOB, I believe it should work for longblob =
also.

    If your JDBC driver is JDBC 2 compliant, try calling...
    1. BLOB ResultSet#getBlob(String colName)
    then
    2. byte[] BLOB#getBytes(long pos, int length)

    Apologies if this did not work, please let me know if it worked or not =
for you.

    Yours, Ahmed

------=_NextPart_000_003D_01C1DEF4.50025080
Content-Type: text/html; charset=US-ASCII
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2713.1100" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>


<DIV><FONT face=Arial size=2>I have CMP EJB and I don't know what class to use 
for MySQL longblob mapping?</FONT></DIV>
<DIV><FONT face=Arial size=2>This will be deployed to WebLogic and BES5 
(Borland).</FONT></DIV>
<DIV><FONT face=Arial size=2>I try for WebLogic with java.sql.Blob and for BES 
byte[], like documents said, but this doesn't work for me.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I just know that I must deliver something that 
servlet developer can cast to byte[].</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Any suggestion (anyone) how to map this 
column?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>P.S. Sorry Ahmed I didn't explain better 
;)</FONT></DIV>
<BLOCKQUOTE 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A [email protected] 
  href="mailto:[email protected]">Aboul-Enein, Ahmed A</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  [email protected] 
  href="mailto:[email protected]">[email protected]</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Sunday, April 07, 2002 5:31 
PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [EJB-Developer] MySQL 
  longblob</DIV>
  <DIV><BR></DIV>
  <BLOCKQUOTE>
    <DIV class=OutlookMessageHeader dir=ltr align=left><BR><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN class=187221615-07042002>The following is 
    valid for BLOB, I believe it should work for longblob 
    also.</SPAN></FONT></FONT></DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN 
    class=187221615-07042002></SPAN></FONT></FONT>&nbsp;</DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN 
    class=187221615-07042002></SPAN></FONT></FONT><FONT size=2><FONT face=Tahoma 
    color=#0000ff><SPAN class=187221615-07042002>If your JDBC driver is JDBC 2 
    compliant, try calling...</SPAN></FONT></FONT></DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN class=187221615-07042002>1. BLOB 
    ResultSet#getBlob(String colName)</SPAN></FONT></FONT></DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN 
    class=187221615-07042002>then</SPAN></FONT></FONT></DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN class=187221615-07042002>2. byte[] 
    BLOB#getBytes(long pos, int length)</SPAN></FONT></FONT></DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN 
    class=187221615-07042002></SPAN></FONT></FONT>&nbsp;</DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN class=187221615-07042002>Apologies if this 
    did not work, please let me know if it worked or not for 
    you.</SPAN></FONT></FONT></DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN 
    class=187221615-07042002></SPAN></FONT></FONT>&nbsp;</DIV>
    <DIV class=OutlookMessageHeader dir=ltr align=left><FONT size=2><FONT 
    face=Tahoma color=#0000ff><SPAN class=187221615-07042002>Yours, 
    Ahmed</SPAN></FONT></FONT></DIV></BLOCKQUOTE></BLOCKQUOTE>
<br>

<!-- |**|begin egp html banner|**| -->

<table border=0 cellspacing=0 cellpadding=2>
<tr bgcolor=#FFFFCC>
<td align=center><font size="-1" color=#003399><b>Yahoo! Groups Sponsor</b></font></td>
</tr>
<tr bgcolor=#FFFFFF>
<td align=center width=470><table border=0 cellpadding=0 cellspacaaing=0>
<tr>
<td align=center><font face=arial size=-2>ADVERTISEMENT</font><br><a href="http://rd.yahoo.com/M=178320.1964497.3448863.1261774/D=egroupweb/S=1705006905:HM/A=879171/R=0/*http://www.fastweb.com/ib/yahoo-57f"><img src="http://us.a1.yimg.com/us.yimg.com/a/fa/fastweb/300x250.gif" alt="" width="300" height="250" border="0"></a></td>
</tr>
</table></td>
</tr>
<tr><td><img alt="" width=1 height=1 src="http://us.adserver.yahoo.com/l?M=178320.1964497.3448863.1261774/D=egroupmail/S=1705006905:HM/A=879171/rand=488874310"></td></tr>
</table>

<!-- |**|end egp html banner|**| -->


<br>
<tt>
EJB-Developer group email addresses:<BR>
&nbsp; Post message: [email protected]<BR>
&nbsp; Subscribe:&nbsp;&nbsp;&nbsp; [email protected]<BR>
&nbsp; Unsubscribe:&nbsp; [email protected]<BR>
&nbsp; List owner:&nbsp;&nbsp; [email protected]<BR>
<BR>
Our other technical discussion groups:<BR>
 - For general Java (J2EE) questions/answers: <a href="http://groups.yahoo.com/group/Java_Developer">http://groups.yahoo.com/group/Java_Developer</a><BR>
 - For peer-to-peer software development discussion: <a href="http://groups.yahoo.com/group/P2P-Developer">http://groups.yahoo.com/group/P2P-Developer</a><BR>
<BR>
Web link to the EJB-Developer group:<BR>
&nbsp; <a href="http://groups.yahoo.com/group/EJB-Developer">http://groups.yahoo.com/group/EJB-Developer</a><BR>
<BR>
ATTENTION: You are receiving this message because you actively subscribed to the EJB-Developer technical discussion group on Yahoo! Groups.&nbsp; All subscriptions come from Yahoo-verified email addresses and are logged, thereby provable.&nbsp; To unsubscribe, send a blank email from the email address receiving group messages to the 'Unsubscribe' email address shown above.&nbsp; If this doesn't work, send a message concerning this problem to [email protected].&nbsp; Only Yahoo! Groups is responsible for their own subscription services; the moderator will not perform these services at any time.<BR>
<BR>
*** EJB-Developer - A free service brought to you by Democracy 2.0 (www.democracy2.org) ***</tt>
<br>

<br>
<tt>Your use of Yahoo! Groups is subject to the <a href="http://docs.yahoo.com/info/terms/">Yahoo! Terms of Service</a>.</tt>
</br>

</BODY></HTML>

------=_NextPart_000_003D_01C1DEF4.50025080--